经过培训初始模型.在推断时我收到此错误.(我正在使用https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/image_retraining)
TypeError:无法将feed_dict键解释为Tensor:名称'DecodeJpeg/contents:0'指的是不存在的Tensor.图中不存在'DecodeJpeg/contents'操作.
omer@omer-HP-EliteBook-8540w:~/Downloads/tensorflow-
master/tensorflow/examples/image_retraining$ python label_image.py --graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt --image=/home/omer/Downloads/tensorflow-master/tensorflow/examples/image_retraining/pwd/glass/glass52.jpg --output_layer=final_result
2017-08-13 17:10:05.642446: W
tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow
library wasn't compiled to use SSE4.1 instructions, but these are
available on your machine and could speed up CPU computations.
2017-08-13 17:10:05.642507: W
tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow
library wasn't compiled to use SSE4.2 instructions, but these are
available on your machine and could speed up CPU computations.
Traceback (most recent call last):
File "retraining-example.py", line 86, in <module>
run_inference_on_image()
File "retraining-example.py", line 69, …Run Code Online (Sandbox Code Playgroud)