yolov5  by ultralytics

YOLOv5 in PyTorch for object detection, segmentation, and classification

created 5 years ago
54,833 stars

Top 0.4% on sourcepulse

GitHubView on GitHub
Project Summary

YOLOv5 is a PyTorch-based computer vision framework offering state-of-the-art performance for object detection, segmentation, and classification tasks. It targets researchers and developers seeking a fast, accurate, and user-friendly solution for vision AI applications, with a focus on real-world performance and accessibility.

How It Works

YOLOv5 leverages the YOLO (You Only Look Once) architecture, known for its single-stage detection approach. It integrates PyTorch for flexible model development and training, with seamless export capabilities to ONNX, CoreML, and TFLite for broad deployment. The framework offers various model sizes (n, s, m, l, x) to balance speed and accuracy, and supports advanced features like Test-Time Augmentation (TTA) and hyperparameter evolution.

Quick Start & Requirements

  • Install via pip: pip install ultralytics
  • Alternatively, clone the repo and run pip install -r requirements.txt.
  • Requires Python >= 3.8.0 and PyTorch >= 1.8.
  • Official Docs: https://docs.ultralytics.com/yolov5/

Highlighted Details

  • Supports object detection, instance segmentation, and image classification.
  • Models can be exported to ONNX, CoreML, TFLite, and TensorRT.
  • Benchmarks provided for various model sizes on COCO dataset, showing trade-offs between speed and accuracy.
  • Integrates with experiment tracking tools like Weights & Biases and Comet ML.

Maintenance & Community

Licensing & Compatibility

  • AGPL-3.0 License: Suitable for research and non-commercial use.
  • Enterprise License: Available for commercial applications from Ultralytics.

Limitations & Caveats

  • AGPL-3.0 license may restrict commercial use without an enterprise license.
  • The project also hosts YOLOv8, which may lead to confusion regarding the latest recommended version.
Health Check
Last commit

2 weeks ago

Responsiveness

1 day

Pull Requests (30d)
6
Issues (30d)
9
Star History
1,490 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.