我一直在关注“Tensorflow on Android”的 github 存储库。
tensorflow/examples/android/assets
中tensorflow_inception_graph.pb
和 imagenet_comp_graph_label_strings.txt
包括在构建 APK 时下载的 inception5 文件中。 有什么问题?
tensorflow/examples/image_retraining/retrain.py
中提到),我可以将它放在 android 目录的 assets 文件夹中并生成一个工作 APK。 请帮我理解
tensorflow_inception_graph.pb
在张量板上 最佳答案
去年五月,他们引入了一个名为 import_pb_to_tensorboard
的帮助脚本。做到这一点。
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.
请注意,目前
master
中的版本似乎收到了比最新1.2.1
中的更多的爱 tensorflow 的分布,所以我建议使用这个。
关于android-studio - 在 Tensorboard 上分析 tensorflow 图或 .pb 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43375003/