diff options
author | 2016-12-06 16:59:55 -0800 | |
---|---|---|
committer | 2016-12-06 17:05:37 -0800 | |
commit | bd65cda4051a042003096096ab9b05c73a15e65c (patch) | |
tree | 20d5be971859994ad11d4860c658e6b24932a8be /tensorflow/java/README.md | |
parent | d95969fe12764a2a5993a8a4b9e76d72aa3be818 (diff) |
Java: LabelImage using Inception example.
Command-line program to:
- Construct an image normalization graph G1
- Execute G1 in a session to produce a tensor of a batch of images
- Import a pre-trained inception model into a graph G2
- Execute G2 in a session to find the best matching label
In other words, the Java equivalent of:
- C++ example https://github.com/tensorflow/tensorflow/tree/abbb4c1/tensorflow/examples/label_image
- Go example
https://github.com/tensorflow/tensorflow/blob/c427b7e89d1498b78d361bfe7345b2636a438893/tensorflow/go/example_inception_inference_test.go
Another step in the journey that is #5
Change: 141247499
Diffstat (limited to 'tensorflow/java/README.md')
-rw-r--r-- | tensorflow/java/README.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/java/README.md b/tensorflow/java/README.md index d9bee5e342..1eea76c48a 100644 --- a/tensorflow/java/README.md +++ b/tensorflow/java/README.md @@ -40,7 +40,7 @@ bazel build -c opt \ //tensorflow/java:libtensorflow-jni ``` -## Example Usage +## Example ### With bazel @@ -48,7 +48,7 @@ Add a dependency on `//tensorflow/java:tensorflow` to the `java_binary` or `java_library` rule. For example: ```sh -bazel run -c opt //tensorflow/java/src/main/java/org/tensorflow/examples:example +bazel run -c opt //tensorflow/java/src/main/java/org/tensorflow/examples:label_image ``` ### With `javac` @@ -58,7 +58,7 @@ bazel run -c opt //tensorflow/java/src/main/java/org/tensorflow/examples:example ```sh javac \ -cp ../../bazel-bin/tensorflow/java/libtensorflow.jar \ - ./src/main/java/org/tensorflow/examples/Example.java + ./src/main/java/org/tensorflow/examples/LabelImage.java ``` - Make `libtensorflow.jar` and `libtensorflow-jni.so` @@ -68,5 +68,5 @@ bazel run -c opt //tensorflow/java/src/main/java/org/tensorflow/examples:example java \ -Djava.library.path=../../bazel-bin/tensorflow/java \ -cp ../../bazel-bin/tensorflow/java/libtensorflow.jar:./src/main/java \ - org.tensorflow.examples.Example + org.tensorflow.examples.LabelImage ``` |