tensorflow for poets: “The name 'import/input' refers to an Operation not in the graph.”

前端 未结 11 1327
长情又很酷
长情又很酷 2020-12-29 23:17

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

python -m scripts.label_imag         


        
11条回答
  •  长情又很酷
    2020-12-29 23:53

    Not everyone is getting this error. I'm guessing if you used any other architecture apart from MobileNet this error turns up. In your label_image.py file change the values to:

    input_height = 299
    input_width = 299
    input_layer = "Mul"
    

    This should solve it.

提交回复
热议问题