Skip to content

Commit

Permalink
Add grace_hopper.jpg to tensorflow-examples
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Castro <[email protected]>
Signed-off-by: Chris Paterson <[email protected]>
  • Loading branch information
Fabrizio Castro authored and patersonc committed May 22, 2018
1 parent 0f7b57a commit 27927a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions meta-tensorflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
Expand All @@ -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 = " \
Expand Down

0 comments on commit 27927a2

Please sign in to comment.