From 27927a26f306e797ca6c7a4acf931f7eb86768a4 Mon Sep 17 00:00:00 2001 From: Fabrizio Castro Date: Tue, 22 May 2018 14:28:04 +0100 Subject: [PATCH] Add grace_hopper.jpg to tensorflow-examples Signed-off-by: Fabrizio Castro Signed-off-by: Chris Paterson --- meta-tensorflow/README.md | 7 +++---- .../recipes-mathematics/tensorflow/tensorflow_1.2.bb | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/meta-tensorflow/README.md b/meta-tensorflow/README.md index 80aabfa..674ec47 100644 --- a/meta-tensorflow/README.md +++ b/meta-tensorflow/README.md @@ -19,7 +19,7 @@ family of System on Chips. In order to add TensorFlow support to your project, make sure *tensorflow* is listed as a dependency to your recipe/package. -Listing *tensorflow* and *tensorflow-dev* in *IMAGE\_INSTALL* variable could be +Listing *tensorflow* and *tensorflow-dev* in *IMAGE_INSTALL* variable could be beneficial when you just want to populate an SDK for developing an application based on TensorFlow. @@ -38,9 +38,8 @@ In summary: 1. Download model data: `wget https://storage.googleapis.com/download.tensorflow.org/models/inception_v3_2016_08_28_frozen.pb.tar.gz` 2. Extract to home directory on target. -3. Copy image to be processed to home directory on target. -4. Run label_image, specifying the downloaded files: -`/usr/bin/tensorflow/examples/label_image --image="/home/root/grace_hopper.jpg" --graph="/home/root/inception_v3_2016_08_28_frozen.pb" --labels="/home/root/imagenet_slim_labels.txt"` +3. Run label_image, specifying the downloaded files: +`/usr/bin/tensorflow/examples/label_image --image="/usr/bin/tensorflow/examples/grace_hopper.jpg" --graph="/home/root/inception_v3_2016_08_28_frozen.pb" --labels="/home/root/imagenet_slim_labels.txt"` Instructions for verifying the C library can be found in the "Validate your diff --git a/meta-tensorflow/recipes-mathematics/tensorflow/tensorflow_1.2.bb b/meta-tensorflow/recipes-mathematics/tensorflow/tensorflow_1.2.bb index 4be0225..8348de5 100644 --- a/meta-tensorflow/recipes-mathematics/tensorflow/tensorflow_1.2.bb +++ b/meta-tensorflow/recipes-mathematics/tensorflow/tensorflow_1.2.bb @@ -96,6 +96,9 @@ do_install () { install -m 0555 \ ${S}/bazel-out/${HOST_PREFIX}opt/bin/tensorflow/examples/label_image/label_image \ ${D}${bindir}/${PN}-${PV}/examples + install -m 0644 \ + ${S}/tensorflow/examples/label_image/data/grace_hopper.jpg \ + ${D}${bindir}/${PN}-${PV}/examples cd ${D}${bindir} ln -sf ${PN}-${PV} ${PN} } @@ -120,6 +123,7 @@ FILES_${PN}-dbg = " \ FILES_${PN}-examples = " \ ${bindir}/${PN} \ ${bindir}/${PN}-${PV}/examples/label_image \ + ${bindir}/${PN}-${PV}/examples/grace_hopper.jpg \ " FILES_${PN}-examples-dbg = " \