I have been following github repository for "Tensorflow on Android".
tensorflow/examples/android/assets
tensorflow_inception_graph.pb
and imagenet_comp_graph_label_strings.txt
are included, from inception5 file which is downloaded while the APK is built.What's the issue?
tensorflow/examples/image_retraining/retrain.py
), which I was able to place in the assets folder in android directory and generate a working APK.Please help me understand
tensorflow_inception_graph.pb
on TensorboardTensorboard works by reading the event files which is where Tensorflow writes the summary data (the data to be visualized). It usually comes installed with Tensorflow and to execute it simply run the following command: tensorboard --logdir=[dir] where [dir] is the event files location.
Simply speaking, if the possible values are in a range of 0.. 9 and you see a spike of amount 10 on the value 0 , this means that 10 inputs assume the value 0 ; in contrast, if the histogram shows a plateau of 1 for all values of 0.. 9 , it means that for 10 inputs, each possible value 0.. 9 occurs exactly once.
Last May they have introduced a helper script called import_pb_to_tensorboard
to do just that.
usage: import_pb_to_tensorboard.py [-h] [--model_dir MODEL_DIR]
[--log_dir LOG_DIR]
optional arguments:
-h, --help show this help message and exit
--model_dir MODEL_DIR
The location of the protobuf ('pb') model to
visualize.
--log_dir LOG_DIR The location for the Tensorboard log to begin
visualization from.
Note that currently, the version in master
seems to have received more love than the one present in the latest 1.2.1
distribution of tensorflow, so I would suggest to use this one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With