YOLO Detection on Grayscale Images
7 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to detect objects in the grayscale images, but I get the following error.
"The input image channel size (1) must be the same as the network's input channel size (3)."
Per documentation, it says the network accpets single channel as well, but what could be the reason for the error?
Thanks!
采纳的回答
Sunil Patidar
2020-11-10
Hi Kev,
It seems to be an issue with the 'trainYOLOV2ObjectDetector' function not being able to accept images that are of size [M x N x 1]. As a workaround you might need to duplicate your grayscale image across all three channels, and use a network that accepts [M x N x 3] sized matrices.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!