← All courses

EDGE FDE

Intermediate

PyTorch to Android with LiteRT

Train a small Fashion-MNIST clothing classifier on a Mac. Use MPS if you have it, or CPU if you do not. Then export the model, convert it to LiteRT/TFLite, and show clothing labels in a Kotlin Android app.

For someone who can write Python and Kotlin and is new to LiteRT. Convert on Linux. The official LiteRT Torch converter currently says it supports Linux. Android is where the finished app runs.

Lessons

  1. The LiteRT clothing pipeline
  2. Train ClothingCNN on Fashion-MNIST
  3. Export ClothingCNN for LiteRT
  4. Create the Android Studio LiteRT project
  5. Build the Kotlin clothing classifier UI
  6. Profile and verify on Android
  7. End-to-end Android checklist

Key concepts

Takeaways

Agent briefs

Related courses

PyTorch to Core AI in Xcode · Model architectures in plain English