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

前端 未结 11 1295
长情又很酷
长情又很酷 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:46

    Use --input_layer name as Placeholder. It will work because the retrain.py script has set default value of input_layer as "Placeholder".

        python label_image.py 
              --graph=retrained_graph.pb 
              --labels=retrained_labels.txt 
              --output_layer=final_result 
              --image=testimage654165.jpg 
              --input_layer=Placeholder
    

提交回复
热议问题