aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples/android/README.md
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2015-11-18 16:41:37 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2015-11-18 16:41:37 -0800
commitf7918e1dcd5b0c1f8114f488fc35a63a81e94535 (patch)
tree801a5280729f2ea53cf6a16c29a63f352b65a0de /tensorflow/examples/android/README.md
parentab34d55ce7618e52069a2e1c9e51aac5a1ea81c3 (diff)
TensorFlow: Removal of large assets and small other fixes.
Changes: - Remove all large assets from the repoistory, incuding the other 50MiB model protobuf and a lot of images in our g3doc directory. We will maintain these assets externally for now. g3doc images may be broken for a little bit, but the website will be fine, which is the important resource. By @vrv and @petewarden. Updates READMES to reflect the external model resources. - Fix to saver's latest_checkpoint function by Zhifeng - Made protos visibility public by @vrv - Updates to docs by @mrry, Andy - Embed tensorboard resource for summary icon by Daniel - More updates to backwars compat by @josh11b Base CL: 108194981
Diffstat (limited to 'tensorflow/examples/android/README.md')
-rw-r--r--tensorflow/examples/android/README.md20
1 files changed, 16 insertions, 4 deletions
diff --git a/tensorflow/examples/android/README.md b/tensorflow/examples/android/README.md
index e115c0a609..b209f1a01f 100644
--- a/tensorflow/examples/android/README.md
+++ b/tensorflow/examples/android/README.md
@@ -5,9 +5,7 @@ This folder contains a simple camera-based demo application utilizing Tensorflow
## Description
This demo uses a Google Inception model to classify camera frames in real-time,
-displaying the top results in an overlay on the camera image. See
-[`assets/imagenet_comp_graph_label_strings.txt`](assets/imagenet_comp_graph_label_strings.txt)
-for the possible classifications.
+displaying the top results in an overlay on the camera image.
## To build/install/run
@@ -21,7 +19,21 @@ installed the NDK and SDK. Otherwise an error such as:
"The external label '//external:android/sdk' is not bound to anything" will
be reported.
-To build the APK, run this from your workspace root:
+The TensorFlow `GraphDef` that contains the model definition and weights
+is not packaged in the repo because of its size. Instead, you must
+first download the file to the `assets` directory in the source tree:
+
+```bash
+$ wget https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip -O tensorflow/examples/android/assets/inception5h.zip
+
+$ unzip tensorflow/examples/android/assets/inception5h.zip -d tensorflow/examples/android/assets/
+```
+
+The labels file describing the possible classification will also be in the
+assets directory.
+
+Then, after editing your WORKSPACE file, you must build the APK. Run this from
+your workspace root:
```bash
$ bazel build //tensorflow/examples/android:tensorflow_demo -c opt --copt=-mfpu=neon