2.4k GitHub stars and counting — leggedrobotics/darknet_ros is a C++ project TopGit is tracking across repositories on the platform. YOLO ROS: Real-Time Object Detection for ROS
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
This is a ROS package developed for object detection in camera images. You only look once (YOLO) is a state-of-the-art, real-time object detection system. In the following ROS package you are able to use YOLO (V3) on GPU and CPU. The pre-trained model of the convolutional neural network is able to detect pre-trained classes including the data set from VOC and COCO, or you can also create a network with your own detection objects. For more information about YOLO, Darknet, available training data and training YOLO see the following link: YOLO: Real-Time Object Detection.
The YOLO packages have been tested under ROS Noetic and Ubuntu 20.04. Note: We also provide branches that work under ROS Melodic, ROS Foxy and ROS2.
This is research code, expect that it changes often and any fitness for a particular purpose is disclaimed.
The YOLO methods used in this software are described in the paper: You Only Look Once: Unified, Real-Time Object Detection.
If you are using YOLO V3 for ROS, please add the following citation to your publication:
M. Bjelonic
"YOLO ROS: Real-Time Object Detection for ROS",
URL: https://github.com/leggedrobotics/darknet_ros, 2018.
@misc{bjelonicYolo2018,
author = {Marko Bjelonic},
title = {{YOLO ROS}: Real-Time Object Detection for {ROS}},
howpublished = {\url{https://github.com/leggedrobotics/darknet_ros}},
year = {2016--2018},
}
Installation
Dependencies
This software is built on the Robotic Operating System ([ROS]), which needs to be installed first. Additionally, YOLO for ROS depends on following software:
OpenCV (computer vision library),
boost (c++ library),
Building
In order to install darknet_ros, clone the latest version using SSH (see how to set up an SSH key) from this repository into your catkin workspace and compile the package using ROS.
cd catkin_workspace/src
git clone --recursive [email protected]:leggedrobotics/darknet_ros.git
cd ../
To maximize performance, make sure to build in Release mode. You can specify the build type by setting
Darknet on the CPU is fast (approximately 1.5 seconds on an Intel Core i7-6700HQ CPU @ 2.60GHz × 8) but it's like 500 times faster on GPU! You'll have to have an Nvidia GPU and you'll have to install CUDA. The CMakeLists.txt file automatically detects if you have CUDA installed or not. CUDA is a parallel computing platform and application programming interface (API) model created by Nvidia. If you do not have CUDA on your System the build process will switch to the CPU version of YOLO. If you are compiling with CUDA, you might receive the following build error:
This means that you need to check the compute capability (version) of your GPU. You can find a list of supported GPUs in CUDA here: CUDA - WIKIPEDIA. Simply find the compute capability of your GPU and add it into darknet_ros/CMakeLists.txt. Simply add a similar line like
-O3 -gencode arch=compute_62,code=sm_62
Download weights
The yolo-voc.weights and tiny-yolo-voc.weights are downloaded automatically in the CMakeLists.txt file. If you need to download them again, go into the weights folder and download the two pre-trained weights from the COCO data set:
cd catkin_workspace/src/darknet_ros/darknet_ros/yolo_network_config/weights/
wget http://pjreddie.com/media/files/yolov2.weights
wget http://pjreddie.com/media/files/yolov2-tiny.weights
And weights from the VOC data set can be found here:
In order to get YOLO ROS: Real-Time Object Detection for ROS to run with your robot, you will need to adapt a few parameters. It is the easiest if duplicate and adapt all the parameter files that you need to change from the darknet_ros package. These are specifically the parameter files in config and the launch file from the launch folder.
Nodes
Node: darknet_ros
This is the main YOLO ROS: Real-Time Object Detection for ROS node. It uses the camera measurements to detect pre-learned objects in the frames.
ROS related parameters
You can change the names and other parameters of the publishers, subscribers and actions inside darknet_ros/config/ros.yaml.
How does leggedrobotics/darknet_ros compare to other AI Tools projects?
leggedrobotics/darknet_ros is tracked by TopGit in the AI Tools category, with 2.4k GitHub stars and written in C++. Browse the AI Tools topic page on TopGit to compare it against similar projects by stars and activity.
Is leggedrobotics/darknet_ros open source?
Yes — leggedrobotics/darknet_ros ships under the BSD-3-Clause license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/leggedrobotics/darknet_ros.
What else is in the AI Tools space?
leggedrobotics/darknet_ros is tracked by TopGit under the AI Tools category, alongside 8 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is leggedrobotics/darknet_ros?
leggedrobotics/darknet_ros (leggedrobotics/darknet_ros) is a C++ project on GitHub. From the project's own README: YOLO ROS: Real-Time Object Detection for ROS
Where do I read more about leggedrobotics/darknet_ros?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/leggedrobotics/darknet_ros is the definitive source.
Why is leggedrobotics/darknet_ros categorized under AI Tools?
TopGit places leggedrobotics/darknet_ros in the AI Tools category based on its GitHub topics and description (tagged: "computer-vision", "darknet", "darknet-ros"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Is darknet_ros worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of darknet_ros.