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

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

    You have to make some changes in label_image.py in the scripts folder

    input_height = 299 Change input_height to 299 from 224
    input_width = 299 Change input_width to 299 from 224
    input_mean = 128
    input_std = 128
    input_layer = "Mul" Change input_layer to Mul from input
    output_layer = "final_result"

    Output:

    Evaluation time (1-image): 1.901s

    daisy (score=0.98584)
    sunflowers (score=0.01136)
    dandelion (score=0.00210)
    tulips (score=0.00066)
    roses (score=0.00004)

    For more info, refer this page

提交回复
热议问题