【发布时间】:2018-07-25 10:23:58
【问题描述】:
我使用 retrain.py 示例和 --saved_model_dir 标志重新训练了 Inception 模型,以导出模型以供最终使用。
我成功地将最终模型上传到 Google ML 引擎,现在我正在尝试从中运行预测。
我的请求如下所示:
{"image": {"b64": "/9j/4AAQxh6AP/2Q== ..."}}
但我收到一条错误消息:
{"error": "Prediction failed: Error processing input: Expected float32, got '\\xff\\xd8\\xff\\xe0 ...' of type 'str' instead."}
retrain.py 中的导出示例是否没有导出模型以供 Google ML Engine 使用?
【问题讨论】:
标签: python tensorflow machine-learning google-cloud-ml