如何使用张量流对象检测 API 提高输出图像的分辨率?
How to increase resolution of output Images using tensor flow object detection API?
我已经使用 tensorflow (https://github.com/tensorflow/models/tree/master/research/object_detection) 训练了自己的模型来识别图像中的对象。我正在使用 Google 对象检测 API
测试此模型
我的问题是 Google 对 ipython 笔记本进行编码的方式是输出大小为 200 kb 到 300 kb 的图像,link 到此 ipython笔记本(https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb.)
如何输出原始大小(15MB)的图像(我在本地机器上 运行 此代码)。我尝试更改笔记本的 Helper Code 会话,但没有用。我在这里遗漏了什么吗?
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)
在ipython笔记本的检测部分
我将图像大小更改为
IMAGE_SIZE = (120, 80)
成功了
我已经使用 tensorflow (https://github.com/tensorflow/models/tree/master/research/object_detection) 训练了自己的模型来识别图像中的对象。我正在使用 Google 对象检测 API
测试此模型我的问题是 Google 对 ipython 笔记本进行编码的方式是输出大小为 200 kb 到 300 kb 的图像,link 到此 ipython笔记本(https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb.)
如何输出原始大小(15MB)的图像(我在本地机器上 运行 此代码)。我尝试更改笔记本的 Helper Code 会话,但没有用。我在这里遗漏了什么吗?
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)
在ipython笔记本的检测部分 我将图像大小更改为
IMAGE_SIZE = (120, 80)
成功了