aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/docs_src/mobile/tflite/demo_android.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/docs_src/mobile/tflite/demo_android.md')
-rw-r--r--tensorflow/docs_src/mobile/tflite/demo_android.md23
1 files changed, 11 insertions, 12 deletions
diff --git a/tensorflow/docs_src/mobile/tflite/demo_android.md b/tensorflow/docs_src/mobile/tflite/demo_android.md
index 1980fdeb66..fdf0bcf3c1 100644
--- a/tensorflow/docs_src/mobile/tflite/demo_android.md
+++ b/tensorflow/docs_src/mobile/tflite/demo_android.md
@@ -44,23 +44,22 @@ app:
Android Studio project.
* Install all the Gradle extensions it requests.
-To get a model, either:
-
-* Download the quantized [Mobilenet TensorFlow Lite model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip)
- and unzip and copy `mobilenet_quant_v1_224.tflite` to the assets directory:
- `tensorflow/contrib/lite/java/demo/app/src/main/assets/`.
-* Or, download the floating point [Inception-v3 model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/inception_v3_slim_2016_android_2017_11_10.zip)
- and unzip and copy `inceptionv3_non_slim_2015.tflite` to the assets
- directory. Change the chosen classifier in
- [Camera2BasicFragment.java](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java)<br>
- from: `classifier = new ImageClassifierQuantizedMobileNet(getActivity());`<br>
- to: `classifier = new ImageClassifierFloatInception(getActivity());`.
+Now you can build and run the demo app.
-Now you can build and run the demo app.
+The build process downloads the quantized [Mobilenet TensorFlow Lite model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_224_android_quant_2017_11_08.zip), and unzips it into the assets directory: `tensorflow/contrib/lite/java/demo/app/src/main/assets/`.
Some additional details are available on the
[TF Lite Android App page](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/java/demo/README.md).
+### Using other models
+
+To use a different model:
+* Download the floating point [Inception-v3 model](https://storage.googleapis.com/download.tensorflow.org/models/tflite/inception_v3_slim_2016_android_2017_11_10.zip).
+* Unzip and copy `inceptionv3_non_slim_2015.tflite` to the assets directory.
+* Change the chosen classifier in [Camera2BasicFragment.java](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/lite/java/demo/app/src/main/java/com/example/android/tflitecamerademo/Camera2BasicFragment.java)<br>
+ from: `classifier = new ImageClassifierQuantizedMobileNet(getActivity());`<br>
+ to: `classifier = new ImageClassifierFloatInception(getActivity());`.
+
## Build TensorFlow Lite and the demo app from source