YOLOv5 is an object detection model developed by Ultralytics, released in June 2020 under the AGPL-3.0 license. It is implemented in PyTorch and introduced a more accessible and well-documented YOLO implementation compared to earlier Darknet-based versions, with an integrated training and export pipeline supporting a wide range of deployment targets. YOLOv5 uses a CSP backbone, PANet neck, and a single-stage detection head with anchor-based regression.
YOLOv5 is available in five sizes from Nano to Extra Large and supports export to ONNX, TensorRT, CoreML, and other formats. It is one of the most widely deployed object detection models in production environments and remains a common starting point for custom detection model training due to its documentation, community support, and compatibility with Roboflow Inference.
YOLO (You Only Look Once) is a family of real time object detection models introduced by Joseph Redmon in 2016. YOLO models are known for strong performance and small model size, which makes them suitable for real time and on-device deployment.
Redmon and collaborators later introduced YOLOv2 and YOLOv3, which improved both accuracy and speed. In February 2020, Redmon announced that he would discontinue research in computer vision.
In April 2020, Alexey Bochkovskiy, Chien-Yao Wang, and Hong-Yuan Mark Liao introduced YOLOv4, which provided significant gains in accuracy and speed. Many of these gains came from improved data augmentation as well as architectural changes.
YOLOv5 was released shortly after YOLOv4. At release, it was among the leading realtime object detectors.
YOLOv5 is the first YOLO family release that is implemented natively in PyTorch rather than in the original Darknet framework.
Darknet is a flexible research framework, but it has a smaller user community and is not designed primarily for production deployment. This can make Darknet based models more difficult to configure and integrate into production systems.
By using PyTorch as the primary implementation framework, YOLOv5 benefits from:
Glenn Jocher, the author of YOLOv5, is also the creator of mosaic augmentation, a data augmentation technique that contributed to the improvements in YOLOv4. Mosaic augmentation is part of the training strategy around YOLOv5.
YOLOv5 is released in multiple model sizes to cover different latency and resource budgets:
On a Tesla P100 GPU in a Colab environment, YOLOv5 achieved inference times of about 0.007 seconds per image in batch, which corresponds to approximately 140 frames per second (FPS). Under the same Ultralytics PyTorch implementation, YOLOv4 achieved about 50 FPS.
When batch size is set to 1, YOLOv4 reached about 30 FPS and YOLOv5 about 10 FPS in the reported tests. The 140 FPS figure refers to batched inference, which the tested YOLOv5 implementation uses by default.
On the blood cell count and detection (BCCD) dataset, YOLOv5 reached a mean average precision (mAP) of roughly 0.895 after training for 100 epochs. In the same context, EfficientDet and YOLOv4 achieved comparable accuracy. YOLOv5 therefore provided strong accuracy while also improving aspects such as deployment and model size.
YOLOv5 places emphasis on compact model weights, which simplifies deployment to resource constrained environments.
In this comparison, YOLOv5s is nearly 90 percent smaller than the referenced YOLOv4 model. This size reduction makes YOLOv5 more practical for embedded and mobile deployment while still providing competitive accuracy.

At release, YOLOv5 was reported to be more accurate and faster than EfficientDet in the referenced benchmark graphic.
YOLOv4 introduced many improvements through both architecture and data augmentation. Mosaic augmentation, which was later associated with YOLOv5’s author, was one of the techniques that contributed to YOLOv4’s gains.
Relative to YOLOv4 and EfficientDet, YOLOv5 offered the following characteristics in the reported tests:
These comparisons are specific to the described experimental setup, including hardware, batch size, and model variants.
YOLOv5 is designed for practical use in realtime detection scenarios and on-device applications. Key practical aspects include:
At release, YOLOv5 was accompanied by example training workflows on custom datasets and by references to using standard COCO pretrained weights. These resources demonstrated how to adapt YOLOv5 to new domains and how to run inference in production like environments.
Other models worth comparing for similar use cases.
License terms and commercial-use guidance for YOLOv5.
YOLOv5 is licensed under an AGPL-3.0 license.
This means that YOLOv5 is available for private and commercial use, but that you will need to follow specific conditions. For commercial use, you need to follow AGPL-3.0 conditions or purchase a license for commercial use, modifications, and distribution.
Using an AGPL-3.0 licensed model is conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. When a modified version is used to provide a service over a network, the complete source code of the modified version must be made available.
To use YOLOv5 in a commercial project without the AGPL-3.0 conditions, you need a license. As a paid Roboflow customer, you automatically get access to use any YOLOv5 models trained on or uploaded to our platform for commercial use. This is secured under Roboflow's sub-license agreement with Ultralytics, the creators of YOLOv5.
If you are a free Roboflow customer, you can use YOLOv5 in any way if using our serverless hosted API and can use YOLOv5 models commercially self-hosted with a paid plan.
To learn more about model licensing with Roboflow, refer to our Licensing guide.
AGPL-3.0 closes the "SaaS loophole" in GPL-3.0: even hosting the model behind an API counts as distribution and triggers the source-disclosure requirement.
License information is provided as a guide and is not legal advice.