leggedrobotics / darknet_ros

YOLO ROS: Real-Time Object Detection for ROS
BSD 3-Clause "New" or "Revised" License
2.19k stars 1.18k forks source link

trying yolov4 tiny on darknet_ros in melodic version #378

Closed MBouallegue closed 2 years ago

MBouallegue commented 2 years ago

Loading weights from /home/bojan/darknet_ros_og/src/darknet_ros/darknet_ros/yolo_network_config/weights/yolov4-tiny-custom_2000.weights...Done! Waiting for image. [darknet_ros-1] process has died [pid 13861, exit code -11, cmd /home/bojan/darknet_ros_og/devel/lib/darknet_ros/darknet_ros camera/rgb/image_raw:=/camera/rgb/image_raw __name:=darknet_ros __log:=/home/bojan/.ros/log/869f03e4-4e65-11ec-b140-78d0042abcfe/darknet_ros-1.log]. log file: /home/bojan/.ros/log/869f03e4-4e65-11ec-b140-78d0042abcfe/darknet_ros-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done

Hi everyone,

I am facing the same issue. I've trained a custom model on darknet yolov4-tiny. Followed the instructions on the readme.

  1. Copied .weights file to darknet_ros/yolo_network_config/weights
  2. Copied .cfg file to darknet_ros/yolo_network_config/cfg
  3. Changed ros.yaml, camera reading topic to /zed/zed_node/left/image_rect_color (using zed_ros_wrapper)
  4. Changed yolov2-tiny.yaml to point to config files and weights file per 1. and 2.
  5. Changed detection classes names in yolov2-tiny.yaml to the 1 class the model was trained on ("- box")

I was able to run the default yolov2-tiny.weights and .cfg but face this error only after pointing to our .cfg and weights as mentioned.

Please help.

_Originally posted by @TeingQiHao in https://github.com/leggedrobotics/darknet_ros/issues/205#issuecomment-979659624_

I faced the same issue, trying to run darknet ros with yolov4-tiny but it shut down without any explanation, can someone help?

MBouallegue commented 2 years ago

This package helped me to use the yolov4 and worked with my custom dataset https://github.com/Tossy0423/darknet_ros/tree/020b7560f9c5901605503bb59450ed7654514e9c I guess in the old version of darknet (melodic for me) some elements in the darknet/src is not updated to suits the yolov4