leggedrobotics / darknet_ros

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

Optimizing in the processing time #380

Open MBouallegue opened 2 years ago

MBouallegue commented 2 years ago

The problem I want to optimize the processing time, I'm using darknet (melodic) Yolov4-tiny on a robot with CPU (i5-3610me) and 4 go ram before launching the node the 4 cores are running on ~70% (due to navigation and other stuff) and when I launch it, it goes up to 100% with 0.8 FPS

Idea I thought about processing some portion of the frame meaning the darknet input (the topic of /rgb/image_raw) will take half of the frame maybe that could help improve a little bit, if so how can I try it? I want this issue to be an active issue for the community to share their ideas on how we can optimize for this kind of situation

Thank you