Retrained inception_v3 model deployed in Cloud ML Engine always outputs the same predictions

后端 未结 3 2134

I followed the codelab TensorFlow For Poets for transfer learning using inception_v3. It generates retrained_graph.pb and retrained_labels.txt files, which can used to make

3条回答
  •  萌比男神i
    2021-01-01 03:16

    I believe that your error is quite simple to solve:

    { "key": "0", "image_bytes": { "b64": "jpeg_image_base64_encoded" } }
    

    You used " to specify what, I believe, is a string. By doing that, your program is reading jpeg_image_base64_encoded instead of the actual value of the variable.

    That's why you get always the same prediction.

提交回复
热议问题