【问题标题】:How do I call the Google AI Platform API with a TensorFlow image classification model如何使用 TensorFlow 图像分类模型调用 Google AI Platform API
【发布时间】:2019-09-05 03:18:11
【问题描述】:

我刚刚将我的 saved_model.pb 上传到 Google AI Platform,它是一个图像分类模型。当我在命令行中测试模型时,它工作正常。但是,如果我尝试调用 API,我会不断收到错误消息:“请求有效负载大小超出限制”

我确定传递小图像不会占用太多空间。 有什么建议吗?

谢谢!

【问题讨论】:

标签: tensorflow google-cloud-platform tensorflow-serving


【解决方案1】:

原来这是一个简单的错误。对于其他面临这种情况的人:我的 JSON 中有很多空格,一旦我删除它们,它就起作用了!

【讨论】:

    猜你喜欢
    • 2020-09-02
    • 2019-09-25
    • 2020-10-05
    • 2020-12-16
    • 1970-01-01
    • 2021-08-28
    • 2020-03-13
    • 1970-01-01
    • 2017-08-13
    相关资源
    最近更新 更多