You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the darknet_ros node is fed an image topic that is single-channel, it instantly reaches a segmentation fault. The fault originates from the rgbgr_image() function inside of image.c. (first and second screenshots below)
If that function is not used, more errors arise (third screenshot below).
YoloObjectDetector.cpp appears to have some functionality for handling mono images (fourth screenshot below).
Is there any way that grayscale images can be fed in for YOLOv3 object detection? I've changed channels=3 to channels=1 to in yolov3.cfg and provided weights for a custom trained YOLOv3 model that was trained on the same mono/grayscale image format.
To Reproduce
Steps to reproduce the behavior:
Build darknet_ros.
Set up custom weights and change params to search for those weights.
Play a rosbag file including a grayscale sensor_msgs/Image topic.
Launch darknet_ros_gdb.launch and see segementation fault.
Expected behavior
darknet_ros node should continue executing after subscribing to the sensor_msgs/Image topic.
Screenshots
System (please complete the following information):
OS: Ubuntu 20.04
ROS version: ROS Noetic
YOLOv3 Running on CPU
The text was updated successfully, but these errors were encountered:
Describe the bug
When the darknet_ros node is fed an image topic that is single-channel, it instantly reaches a segmentation fault. The fault originates from the rgbgr_image() function inside of image.c. (first and second screenshots below)
If that function is not used, more errors arise (third screenshot below).
YoloObjectDetector.cpp appears to have some functionality for handling mono images (fourth screenshot below).
Is there any way that grayscale images can be fed in for YOLOv3 object detection? I've changed channels=3 to channels=1 to in yolov3.cfg and provided weights for a custom trained YOLOv3 model that was trained on the same mono/grayscale image format.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
darknet_ros node should continue executing after subscribing to the sensor_msgs/Image topic.
Screenshots
System (please complete the following information):
The text was updated successfully, but these errors were encountered: