Tensorflow Inception FeedInputs:无法找到提要输出输入 [英] Tensorflow Inception FeedInputs: unable to find feed output input

查看:67
本文介绍了Tensorflow Inception FeedInputs:无法找到提要输出输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在tensorflow网站上尝试了初始教程:
https: //www.tensorflow.org/versions/r0.12/how_tos/image_retraining/
bazel构建成功完成,但是当我尝试通过以下命令预测图像类时:

I tried the inception tutorial in tensorflow site: https://www.tensorflow.org/versions/r0.12/how_tos/image_retraining/ the bazel build is done successfully but when I try to predict an image class wth this command:

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

我有此错误:
tensorflow / examples / label_image / main.cc:305]运行模型失败:找不到:FeedInputs:无法找到提要输出输入

I have this error: tensorflow/examples/label_image/main.cc:305] Running model failed: Not found: FeedInputs: unable to find feed output input

我该如何解决这个问题

推荐答案

线程帮助我解决了此问题。

This thread helped me to fix this issue.

似乎我们需要为Tensorflow 1.0+提供-input_layer

It seems that we need to provide --input_layer with Tensorflow 1.0+.

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

In your case, this should fix the problem:

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

这篇关于Tensorflow Inception FeedInputs:无法找到提要输出输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆