Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 张量流预测_Python_Tensorflow_Machine Learning - Fatal编程技术网

Python 张量流预测

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

使用Tensorflow在线预测单个图像的正确格式是什么?在文档中,我看到base64编码的图像字符串必须具有键
实例
。在其他地方,我看到单个键是“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}