

I build PyBox, so this is a list of what I ran myself on an Android build of it. Get it on Google Play.
The versions
| Package | Version tested | Notes |
|---|---|---|
| Python | 3.14.8 | The CPython that PyBox ships |
| TensorFlow | 2.21 | Android arm64 wheel, installed with pip |
| Keras | 3.15 | TensorFlow backend |
| PyTorch | 2.14 | Trained a digit classifier to about 98 percent |
| MediaPipe | 1.1.1 | Tasks API for vision and text |
| scikit-learn, SciPy, pandas | current | Installed on demand |
Keras and TensorFlow results
These are PyBox project templates. Each one ran to the end on an Android emulator, using only the phone's CPU.
| Project | What it does | Result |
|---|---|---|
| Keras MNIST CNN | Trains a small CNN on 20,000 digits, saves and reloads it | 96.8 percent test accuracy |
| MobileNetV2 classifier | Pretrained ImageNet model on your photos | A cheeseburger photo scores 75 percent cheeseburger |
| Movie review sentiment | Embedding model on the IMDB reviews | About 86 percent test accuracy |
| TensorFlow Lite converter | Converts a Keras model and runs it with the Lite interpreter | 53.9 kB float, 17.5 kB quantized, same 93.3 percent accuracy |
| Time series forecast | GRU network against a naive baseline | RMSE 1.53 against 1.94 |
| Denoising autoencoder | Cleans noisy Fashion-MNIST images | Error from 0.067 down to 0.020 |
| Custom training loop | tf.GradientTape by hand | Recovers y = 3x + 2 to three decimals |
MediaPipe results
| Project | Result on the test image |
|---|---|
| Hand landmarks | Two hands found at 94 and 96 percent, 21 points each, raised fingers counted |
| Gesture recognizer | Thumb up, victory and pointing up all named correctly |
| Face landmarks | 478 points and expression scores, such as a 95 percent smile |
| Face blur | Face found at 92 percent and blurred |
| Pose landmarker | 33 points, with elbow and knee angles in degrees |
| Object detection | EfficientDet-Lite0 found the person at 93 percent |
| Image classifier | EfficientNet-Lite0 names the burger at 89 percent |
| Text similarity | Matches "I can't log in" to the password and login lines |
Two things I had to work around
- Import order. On Android, loading matplotlib's Agg renderer after PyTorch or TensorFlow can crash Python. The templates import matplotlib first and leave a comment saying why.
- Models download once. Weights and MediaPipe model files come from Google's servers the first time, then stay in the project folder.
Try it
Open PyBox, choose New Project, and search the templates for Keras, TensorFlow or MediaPipe. If you want to learn first, see Python projects you can build on Android. A live hand tracking project using the camera is in the templates too. I only ran it as far as opening the camera on an emulator without one, so treat that one as untested on real hardware.
Questions
Does TensorFlow run on Android in PyBox?
Yes. PyBox installs TensorFlow 2.21 from an Android arm64 wheel, and Keras 3.15 runs on the TensorFlow backend. Training, saving and TensorFlow Lite conversion all ran on the phone in my tests.
Does MediaPipe work in Python on Android?
Yes, through the Tasks API (mediapipe 1.1.1): hand, face, pose, gesture, object detection, image classification and text embedding all ran. The old mp.solutions API is not in that version.
Can I train models on a phone?
Small ones, yes. A CNN on 20,000 MNIST images reaches about 97 percent in three epochs. Big models are better trained on a computer and run on the phone.