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

前端 未结 11 1318
长情又很酷
长情又很酷 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-30 00:04

    You should add --output_layer=final_result:0 as parameter.

    Final call is : python -m scripts.label_image \
    --graph=tf_files/retrained_graph.pb  \
    --output_layer=final_result:0 \
    --image=tf_files/flower_photos/daisy/21652746_cc379e0eea_m.jpg
    

提交回复
热议问题