Python 张量流预测
使用Tensorflow在线预测单个图像的正确格式是什么?在文档中,我看到base64编码的图像字符串必须具有键Python 张量流预测,python,tensorflow,machine-learning,Python,Tensorflow,Machine Learning,使用Tensorflow在线预测单个图像的正确格式是什么?在文档中,我看到base64编码的图像字符串必须具有键实例。在其他地方,我看到单个键是“b64”,格式如下: {"b64": "an_encoded_string"} 在另一页上,格式如下所示: {"images": [0.0, …, 0.1], "key": 1} 导出模型时,我使用的输入类型是encoded\u image\u string\u tensor 我用于云预测的命令是: gcloudml引擎predict--m
实例
。在其他地方,我看到单个键是“b64”,格式如下:
{"b64": "an_encoded_string"}
在另一页上,格式如下所示:
{"images": [0.0, …, 0.1], "key": 1}
导出模型时,我使用的输入类型是encoded\u image\u string\u tensor
我用于云预测的命令是:
gcloudml引擎predict--model={model_NAME}--version=v1--json实例={IMAGE.json}