aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/examples
diff options
context:
space:
mode:
authorGravatar Koan-Sin Tan <koansin.tan@gmail.com>2018-06-04 13:14:15 +0800
committerGravatar Koan-Sin Tan <koansin.tan@gmail.com>2018-06-04 13:20:16 +0800
commit558622cd1a95adcd96d0172774342fbea09931eb (patch)
tree7cf12f8f7471f27d1adee49091feab3c1cdb3f2c /tensorflow/contrib/lite/examples
parentfa0e2e361aa9b2ca4496b93cef5917f8c359d27d (diff)
add simple description
Diffstat (limited to 'tensorflow/contrib/lite/examples')
-rw-r--r--tensorflow/contrib/lite/examples/python/label_image.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/tensorflow/contrib/lite/examples/python/label_image.md b/tensorflow/contrib/lite/examples/python/label_image.md
new file mode 100644
index 0000000000..fe7c5226f4
--- /dev/null
+++ b/tensorflow/contrib/lite/examples/python/label_image.md
@@ -0,0 +1,35 @@
+With model (mobilenet_v1_1.0_224_quant.tflite), input image
+(grace_hooper.bmp), and labels file (labels.txt) in /tmp.
+Run
+
+```
+bazel run --config opt //tensorflow/contrib/lite/examples/python:label_image
+```
+
+We can get results like
+
+```
+0.470588: military uniform
+0.337255: Windsor tie
+0.047059: bow tie
+0.031373: mortarboard
+0.019608: suit
+```
+
+Run
+
+```
+bazel run --config opt //tensorflow/contrib/lite/examples/python:label_image \
+-- --graph /tmp/mobilenet_v1_1.0_224.tflite
+```
+
+We can get results like
+```
+0.728693: military uniform
+0.116163: Windsor tie
+0.035517: bow tie
+0.014874: mortarboard
+0.011758: bolo tie
+```
+
+Check [models](../../g3doc/models.md) hosted by Google.