Prediction failed: unknown error

对着背影说爱祢 提交于 2019-12-11 17:23:36

问题


I'm using Google Cloud Machine Learning to predict images with labels. I've trained my model, named flower and I see the API end point at Google API Exporer but, when I call the API at API Explorer, I get the following error:

Image Error

I can't understanding why.

Thanks

Ibere


回答1:


I guess you followed the tutorial from https://github.com/GoogleCloudPlatform/cloudml-samples/tree/master/flowers?

I had the exact same problem but with some trial and errors I succeeded with the payload:

{"instances":[{"image_bytes": {"b64": "/9j/4AAQ...rest of the base64..."}, "key": "0"}]}


来源:https://stackoverflow.com/questions/44592522/prediction-failed-unknown-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!