Tensorflow Detection API中用于SSD检测器的灰度输入图像

拉希米河

我正在创建图像数据集,以使用Tensoflow Detection API(SSD / MobileNet)训练检测器。

图像为灰度图像,但似乎输入应为RGB图像。

我是否需要通过仅将第一个通道复制到其他两个通道来将灰度图像转换为三通道RGB?(如果是,是否有任何软件可以执行此操作?)或另外两个通道应该为空?(是否有用于执行此操作的软件?)

最好的祝福。

没有人

是的,您必须将灰度图像转换为RGB图像。

一个可能的解决方案是使用OpenCV:

import cv2

# suppose that gray_img is your grayscale image
input = cv2.cvtColor(gray_img, cv2.COLOR_GRAY2RGB)

现在您可以将其input用作模型的有效输入图像

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Tensorflow numpy图像重塑[灰度图像]

Tensorflow检测API中的SSD锚点

Tensorflow对象检测API

在Tensorflow Object Detection API中将图像裁剪到边界框

在Tensorflow Object Detection API中定义GPU选项

使用Tensorflow对象检测API检测图像中的小对象

如何在Tensorflow Object Detection API中存储最佳模型检查点(不仅是最新的5个)?

消除Tensorflow Object Detection API中不同类之间的重叠边界框

在Cloud ML上运行的Tensorflow对象检测中的错误:没有模块object_detection.train

在使用Tensorflow Object Detection API进行培训时可以更改学习率吗

Tensorflow对象检测API裁剪图像的片段

如何在Tensorflow Object Detection API中初始化卷积层的权重?

如何在TensorFlow Object Detection API中保留班级特定权重的同时重置班级

在Tensorflow中检测损坏的图像

使用Tensorflow Object Detection Api对带有重叠对象的图像进行实例分割

带有Tensorflow的图像检测器

如何在Tensorflow Object Detection API v2中同时训练和评估

Tensorflow object_detection:无法找到输入和输出张量

object_detection tensorflow api 是否有特定的图像尺寸?

更改tensorflow object_detection教程中的结果数量

如何在 Tensorflow Object Detection API 中获得预测值的百分比?

将 Darkflow tensorflow 模型移植到 Tensorflow Android Camera Detection Demo

使用 tensorflow 更改 mobilenet_ssd 的输入图像大小

将tensorflow object detection api与opencv的质心跟踪算法相结合

tensorflow /model/research/lstm_object_detection 中没有名为“lstm_object_detection”的模块

你能从 tensorflow object detection api v2 导出早期的检查点吗?

Tensorflow object_detection 保存和加载微调模型的正确方法

如何使用 tensorflow.js face-landmark-detection 模型获取嘴唇或眼睛等面部的特定地标

Tensorflow Faster R-CNN with Resnet-50 (v1) Object Detection API 结果每个图像上只有一个边界框