Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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  \

    --image=tf_files/flower_photos/daisy/21652746_cc379e0eea_m.jpg

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 label_image.py 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/label_image.py line 77 and it works:

from

input_layer = "input"

to

input_layer = "Mul"

Hope this answer helps.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...