explaingit

ultralytics/yolov5

Analysis updated 2026-06-20

57,334PythonAudience · developerComplexity · 3/5Setup · moderate

TLDR

Real-time object detection model that finds, labels, and locates multiple objects in images and videos in a single pass, with tools for custom training and deployment to mobile and edge devices.

Mindmap

mindmap
  root((YOLOv5))
    What it does
      Detects objects in images
      Real-time video detection
      Image segmentation
      Image classification
    Tech stack
      Python and PyTorch
      ONNX export
      CoreML and TFLite
    Use cases
      Security cameras
      Quality control
      Mobile apps
      Autonomous vehicles
    Training
      Custom datasets
      Multiple model sizes
      Ultralytics Hub
    Deployment
      CPU and GPU
      Apple Silicon
      Mobile devices
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a security camera system that automatically detects and labels people or vehicles in real time.

USE CASE 2

Train a custom object detector on your own labeled image dataset and export it to run on a mobile phone.

USE CASE 3

Add object detection to a manufacturing quality control pipeline that flags defective products on a production line.

USE CASE 4

Integrate YOLOv5 into an augmented reality app by exporting the model to CoreML for iOS or TFLite for Android.

What is it built with?

PythonPyTorchONNXCoreMLTFLite

How does it compare?

ultralytics/yolov5rvc-boss/gpt-sovitszylon-ai/private-gpt
Stars57,33457,23657,216
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Python with PyTorch installed, a GPU is optional but strongly recommended for training on custom datasets.

In plain English

YOLOv5 is a computer vision model for detecting and identifying objects in images and videos in real time. The name YOLO stands for You Only Look Once, describing an approach to object detection where the model scans an image a single time and produces all detection results simultaneously, rather than processing it in multiple passes. This makes it fast enough for real-time video applications. The model can identify the location and category of multiple objects in a single image, drawing bounding boxes around each detected item and labeling them. YOLOv5 was developed by Ultralytics and is built on the PyTorch deep learning framework. It comes in several size variants trading speed against accuracy, from a small model suitable for embedded hardware to a larger model for maximum precision. The repository includes tools for training the model on your own custom dataset of labeled images, running inference on images or video streams, and exporting the trained model to various deployment formats including ONNX (a portable model format), Apple CoreML for iOS apps, and TFLite for Android or embedded devices. It also supports image segmentation and image classification tasks beyond the core object detection capability. The project integrates with Ultralytics Hub for cloud training and model management. The README notes that a newer model called YOLO11 is now available with improved performance, and encourages users to consider upgrading. The tech stack is Python with PyTorch, and deployment can target CPUs, NVIDIA GPUs, Apple Silicon, and mobile chipsets. You would use YOLOv5 when building a system that needs to identify and locate objects in images or video, such as security cameras, manufacturing quality control, autonomous vehicles, or augmented reality applications.

Copy-paste prompts

Prompt 1
Using YOLOv5, write Python code to load the yolov5s model and run inference on a folder of images, saving the annotated results to an output directory.
Prompt 2
I have a custom dataset of labeled product defects in YOLO format. Write a YOLOv5 training script and explain the key hyperparameters I should tune.
Prompt 3
Show me how to export a trained YOLOv5 model to ONNX and then run inference with the ONNX runtime in Python for CPU deployment.
Prompt 4
Write a real-time YOLOv5 webcam detection script that draws bounding boxes and class labels on each frame and displays the live feed.
Prompt 5
How do I fine-tune YOLOv5 on a small dataset of 200 labeled images to detect a custom object category not in the original training set?

Frequently asked questions

What is yolov5?

Real-time object detection model that finds, labels, and locates multiple objects in images and videos in a single pass, with tools for custom training and deployment to mobile and edge devices.

What language is yolov5 written in?

Mainly Python. The stack also includes Python, PyTorch, ONNX.

How hard is yolov5 to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is yolov5 for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub ultralytics on gitmyhub

Verify against the repo before relying on details.