预测失败:未知错误 [英] Prediction failed: unknown error

查看:111
本文介绍了预测失败:未知错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Cloud Machine Learning来预测带有标签的图像. 我已经训练了名为flower的模型,并且在Google API Exporer上看到了API端点,但是当我在API Explorer中调用API时,出现以下错误:

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:

图片错误

我不明白为什么.

谢谢

伊比利亚

推荐答案

我猜您遵循了 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"}]}

这篇关于预测失败:未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆