Just another small error I’ve run into while testing out Tensorflow’s label image example (Tensorflow/tensorflow/examples/image_retraining/label_image.py):
KeyError: "The name 'import/input' refers to an Operation not in the graph.
This one thankfully doesn’t seem to be my fault. In label_image.py change the following lines:
# Line 78-79 input_layer = "input" output_layer = "InceptionV3/Predictions/Reshape_1" # Change to this input_layer = "Mul" output_layer = "final_result"
Once that’s done just rerun your script and it should all work. Thanks to the following post for the solution: https://github.com/tensorflow/tensorflow/issues/12736