Using the retrained models in the sample Android app

To use our retrained Inception v3 model and MobileNet model in Android's TF Classify app is also pretty straightforward. Follow the steps here to test both retrained models:

  1. Open the sample TensorFlow Android app, located in tensorflow/examples/android, using Android Studio.
  2. Drag and drop two retrained models, quantized_stripped_dogs_retrained .pb and dog_retrained_mobilenet10_224.pb as well as the label file, dog_retrained_labels.txt to the assets folder of the android app.
  3. Open the file ClassifierActivity.java, to use the Inception v3 retrained model, and replace the following code:
private static final int INPUT_SIZE = 224; private static final int IMAGE_MEAN = 117; private static ...

Get Intelligent Mobile Projects with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.