Tensorflow Inception FeedInputs:无法找到Feed输入

Agg*_*nix 6 image-recognition deep-learning tensorflow

我在tensorflow站点尝试了初始教程:https: //www.tensorflow.org/versions/r0.12/how_tos/image_retraining/ bazel build已成功完成但当我尝试使用此命令预测图像类时:

bazel build tensorflow/examples/label_image:label_image && \
bazel-bin/tensorflow/examples/label_image/label_image \
--graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt \
--output_layer=final_result \
--image=$HOME/flower_photos/daisy/21652746_cc379e0eea_m.jpg
Run Code Online (Sandbox Code Playgroud)

我有这个错误:tensorflow/examples/label_image/main.cc:305]运行模型失败:未找到:FeedInputs:无法找到Feed输入

我怎么解决这个问题

vbo*_*net 21

这个帖子帮助我解决了这个问题.

似乎我们需要提供--input_layerTensorflow 1.0+.

在您的情况下,这应该解决问题:

bazel build tensorflow/examples/label_image:label_image && \
bazel-bin/tensorflow/examples/label_image/label_image \
--graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt \
--output_layer=final_result \
--image=$HOME/flower_photos/daisy/21652746_cc379e0eea_m.jpg \
--input_layer=Mul
Run Code Online (Sandbox Code Playgroud)