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

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

    Use this

    curl -LO https://github.com/tensorflow/tensorflow/raw/master/tensorflow/examples/label_image/label_image.py
    python label_image.py \
    --graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt \
    --input_layer=Placeholder \
    --output_layer=final_result \
    --image=$HOME/flower_photos/daisy/21652746_cc379e0eea_m.jpg
    

提交回复
热议问题