【问题标题】:How to increase resolution of output Images using tensor flow object detection API?如何使用张量流对象检测 API 提高输出图像的分辨率?
【发布时间】: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


    【解决方案1】:

    在ipython notebook的检测部分 我将图像大小更改为

    IMAGE_SIZE = (120, 80)
    

    成功了

    【讨论】:

      猜你喜欢
      • 2018-07-17
      • 2020-02-15
      • 1970-01-01
      • 2020-06-04
      • 2013-01-06
      • 2018-01-10
      • 2023-04-09
      • 1970-01-01
      • 2010-10-19
      相关资源
      最近更新 更多