部署了Tensorflow服务并运行测试用于Inception-V3.工作良好.
现在,想为Inception-V3服务进行批处理.例如,想发送10张图像用于预测而不是一张.
怎么做?要更新哪些文件(inception_saved_model.py或inception_client.py)?那些更新是什么样的?以及如何将图像传递给服务 - 它是作为包含图像的文件夹传递还是如何传递?
欣赏这个问题的一些见解.与此相关的任何代码段都非常有用.
=================================
更新了inception_client.py
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT …Run Code Online (Sandbox Code Playgroud)