【问题标题】:Unable to found feed input Error while predicting on Re-trained Inception-V3 in Tensorflow在 Tensorflow 中对重新训练的 Inception-V3 进行预测时无法找到 feed 输入错误
【发布时间】:2017-03-07 06:30:32
【问题描述】:

我目前正在尝试对 TensorFlow 中的重新训练的 Inception-V3 模型进行预测。 当我尝试使用

对图像进行推理时

bazel-bin/tensorflow/examples/label_image/label_image \ --graph=/path/output_graph.pb --labels=/path/output_labels.txt \ --output_layer=final_result \ --image=/path/to/test/image

我遇到了一个错误 E tensorflow/examples/label_image/main.cc:303] Running model failed: Not found: FeedInputs: unable to find feed output Mul

我使用迁移学习来微调在 Imagenet 数据集上训练的 Inception,以在我自己的 1000 多个课程上进行训练。培训和评估过程还可以。我用tf.train.write_graph() 导出图形并用https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/freeze_graph.py 冻结它

有人遇到过这个问题吗?

【问题讨论】:

    标签: image-processing computer-vision tensorflow deep-learning


    【解决方案1】:

    在您使用的图表中,Feed 或“input_layer”节点似乎已重命名,不再称为“Mul”。您需要找到应将输入注入保存的图形的节点的名称,并通过 --input_layer 标志传递节点名称。

    查找节点名称的最简单方法是确保将其明确设置为您在构建图表时首先知道的名称。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-18
      • 2017-03-28
      • 1970-01-01
      • 1970-01-01
      • 2017-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多