0 votes
1 view
in Machine Learning by (17.1k 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 label_image.py has 'input' and 'output' set as default. The architecture I'm using is 'inception_v3'.

1 Answer

0 votes
by (33.2k points)

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


input_layer = "input"


input_layer = "Mul"

Hope this answer helps.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !