← Directory

Yolov5

Open Source
★ 57,491 • Updated Jun 4, 2026, 03:00 PM

YOLOv5 is a family of compound-scaled object detection models trained on the COCO dataset.

Use Cases ▼
01

Real-time object detection in live video feeds (surveillance, smart cities)

02

Inventory counting and product identification in retail warehouses

03

Automatic license plate recognition

04

Animal species detection and counting in wildlife monitoring

05

Defect detection on manufacturing assembly lines

06

Face mask detection in public health applications

What Problem It Solves ▼

YOLOv5 solves the problem of real-time object detection with high accuracy and low computational cost. Developers and researchers need a state-of-the-art detection system that can be deployed on edge devices like smartphones, embedded platforms, and browsers. YOLOv5 provides a single-stage detector that processes images and video streams quickly while maintaining competitive mAP scores, eliminating the need for complex two-stage detectors. Its extensive export capabilities further simplify deployment across diverse hardware.

Key Features ▼
✓

Extremely fast inference with real-time performance

✓

High accuracy on standard benchmarks (MS COCO)

✓

Easy export to multiple deployment formats (ONNX, TFLite, etc.)

✓

Large community and active maintenance

✓

Multiple model sizes allow flexible speed/accuracy tradeoffs

Overview

YOLOv5 is a family of compound-scaled object detection models trained on the COCO dataset. It is implemented in PyTorch and provides a complete training, validation, and inference pipeline. The model architecture uses a modified CSPDarknet53 backbone with a PANet neck and YOLO detection head, supporting anchor-based prediction across multiple scales. YOLOv5 ships with several pre-trained variants—nano, small, medium, large, and xlarge—that trade speed for accuracy.

Full Description ▼

The repository includes utilities for automatic data augmentation (Mosaic, MixUp), hyperparameter evolution, auto-anchor selection, and export to deployment formats like ONNX, CoreML, TFLite, TensorRT, and OpenVINO. A classification module supports image classification tasks, and the codebase is designed for easy extension and customization.

YOLOv5 has been widely adopted due to its balance of speed and accuracy, active community maintenance, and integration with the Ultralytics ecosystem. It can be used from the command line or as a Python library, and Docker containers are provided for reproducible execution. The project is under continuous updates with frequent commits addressing bugs, dependency bumps, and compatibility improvements.

Pros & Cons

Pros

+

Extremely fast inference with real-time performance

+

High accuracy on standard benchmarks (MS COCO)

+

Easy export to multiple deployment formats (ONNX, TFLite, etc.)

+

Large community and active maintenance

+

Multiple model sizes allow flexible speed/accuracy tradeoffs

Cons

−

AGPL-3.0 license can be restrictive for commercial, closed-source projects

−

Limited to object detection and classification; no built-in instance segmentation

Similar Tools

YOLOv8 YOLOv7 YOLOX EfficientDet Detectron2

More in AI/ML