Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in Machine Learning by (19k points)

I was following the codelabs tensorflow for poets and the training worked fine but when I ran the script to evaluate an image:

python -m scripts.label_image \

    --graph=tf_files/retrained_graph.pb  \


I got the following error:

The name 'import/input' refers to an Operation, not in the graph.

I looked around and it has something to do with choosing the input and output layer, the script has 'input' and 'output' set as default. The architecture I'm using is 'inception_v3'.

1 Answer

0 votes
by (33.1k points)

You should change ~/scripts/ line 77 and it works:


input_layer = "input"


input_layer = "Mul"

Hope this answer helps.

Browse Categories