【发布时间】:2018-06-13 13:42:06
【问题描述】:
我已经使用 tensorflow (https://github.com/tensorflow/models/tree/master/research/object_detection) 训练了我自己的模型来识别图像中的对象。我正在使用 Google 对象检测 API 测试这个模型
我的问题是 Google 编码 ipython 笔记本的方式是输出大小为 200 kb 到 300 kb 输出大小的图像,此 ipythonnotebook 的链接(https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb.)
如何输出原始大小(15MB)的图像(我在本地机器上运行此代码)。我试过改变笔记本的助手代码会话它没有工作。我在这里遗漏了什么?
def load_image_into_numpy_array(image):
(im_width, im_height) = image.size
return np.array(image.getdata()).reshape(
(im_height, im_width, 3)).astype(np.uint8)
【问题讨论】:
标签: python-3.x tensorflow jupyter-notebook object-detection object-detection-api