YOLO

Also known as: You Only Look Once

On this page 7

YOLO, short for You Only Look Once, is a family of single-stage object detection models in computer vision that predict object locations and class labels for an entire image in one forward pass of a convolutional or hybrid neural network. Because it treats detection as a single regression problem rather than a chain of proposal and classification steps, YOLO reaches real-time speeds on ordinary GPUs and edge accelerators while keeping accuracy competitive with slower detectors.

Within artificial intelligence, YOLO is the reference point for speed-accuracy trade-offs in practical detection. The name now covers many versions developed by different research groups and companies, so it describes a design philosophy and lineage more than one fixed architecture.

How YOLO turns an image into detections

YOLO works by passing a resized image through a backbone, a neck and a detection head that together output a dense grid of predictions. The backbone extracts visual features at several scales, the neck fuses those scales so that both small and large objects are represented, and the head predicts for each grid location a set of bounding box coordinates, an objectness or confidence score and class probabilities.

The original 2015 design divided the image into a fixed S x S grid and made each cell responsible for objects whose center fell inside it. Later versions predict at three or more feature-map scales, typically with strides of 8, 16 and 32 pixels, which greatly improved recall on small objects. Because thousands of candidate boxes overlap, a post-processing step called non-maximum suppression (NMS) keeps the highest-scoring box for each object and discards near-duplicates above an IoU threshold, commonly 0.45 to 0.7.

The following table summarizes what each stage of the pipeline contributes.

StageTypical componentsRole in detection
Input preprocessingLetterbox resize to 640 x 640, normalizationGives the network a fixed-size tensor
BackboneDarknet, CSPNet, ELAN-style blocksExtracts hierarchical visual features
NeckFPN, PANet, BiFPN-style fusionCombines fine and coarse feature maps
HeadAnchor-based or anchor-free prediction layersOutputs boxes, scores and classes
Post-processingConfidence filtering, NMSRemoves duplicates and weak predictions
Main stages of a YOLO detector

Evolution of the YOLO family

The YOLO lineage has evolved through incremental architectural changes rather than one clean succession, and version numbers do not always indicate a single author or a strict improvement. Early versions introduced the single-pass idea, then added anchor boxes, multi-scale prediction and stronger backbones; later releases moved toward anchor-free heads, decoupled classification and regression branches, and in some variants NMS-free training that removes the post-processing step.

GenerationKey changePractical effect
YOLOv1 (2015)Single grid regression of boxes and classesProved real-time detection was feasible
YOLOv2 and YOLO9000Anchor boxes, batch normalizationHigher recall and stable training
YOLOv3Three-scale prediction, Darknet-53Much better small-object detection
YOLOv4 and YOLOv5CSP backbones, mosaic augmentationStrong accuracy with easy training tools
YOLOv8 and laterAnchor-free decoupled heads, multitask supportDetection, segmentation and pose in one framework
YOLOv10 eraConsistent dual assignment without NMSLower end-to-end latency
Selected milestones in the YOLO lineage

Modern YOLO frameworks are also multitask platforms: the same architecture family can be trained for image segmentation, pose estimation, oriented boxes and image classification by swapping the head, which is one reason the name appears across so many production systems.

YOLO compared with other detection approaches

YOLO differs from two-stage detectors mainly in that it skips the separate region proposal step. Two-stage models such as Faster R-CNN first propose candidate regions and then classify and refine each one, which tends to give precise localization at a higher computational cost. Transformer-based detectors such as DETR treat detection as set prediction with learned object queries and avoid NMS, but they historically needed longer training and more compute.

ApproachDetection strategyTypical strengthTypical weakness
YOLO familySingle-stage dense predictionReal-time speed, simple deploymentCrowded or tiny objects
Faster R-CNNTwo-stage proposals then refinementPrecise boxes on hard scenesSlower inference
SSDSingle-stage multi-scale anchorsLightweight mobile useLower accuracy than recent YOLO
RetinaNetSingle-stage with focal lossHandles class imbalance wellHeavier than small YOLO models
DETR-style modelsTransformer set predictionNo NMS, global contextTraining cost and latency
How YOLO relates to neighboring detector designs

The line between families has blurred: recent YOLO versions borrow attention modules from the vision transformer literature, and real-time transformer detectors now compete directly with YOLO on latency benchmarks.

Model sizes, metrics and deployment choices

Most YOLO releases ship in scaled variants from nano to extra-large, and choosing the right one is the most consequential deployment decision. Smaller models have a few million parameters and run comfortably on embedded hardware; larger models exceed fifty million parameters and need a capable GPU. Accuracy is usually reported as mAP@0.5:0.95 on the COCO benchmark, where recent mid-sized models score roughly in the 45 to 55 percent range, although exact numbers depend on version, input size and training recipe.

Deployment situationRecommended variantReason
Microcontroller or low-power cameraNano, quantized to INT8Fits memory and power budgets
Edge device with acceleratorSmall or mediumBalances frame rate and accuracy
Server-side video analyticsLarge or extra-largeMaximizes accuracy per stream
Offline batch annotationLargest available modelLatency matters less than recall
Choosing a YOLO variant for a deployment target

Deployment usually involves exporting the trained model to ONNX, TensorRT, OpenVINO or Core ML and applying quantization or pruning. Input resolution is a powerful lever: raising it from 640 to 1280 pixels improves small-object recall but roughly quadruples compute.

Training data, limitations and common mistakes

YOLO accuracy depends heavily on annotation quality and dataset coverage, not only on architecture. Models are typically fine-tuned from pretrained weights with a few hundred to several thousand labeled images per class, using augmentations such as mosaic, mixup, color jitter and random scaling. Inconsistent bounding box conventions or missing labels teach the model to ignore real objects.

SymptomLikely causeFix
Small objects missedInput resolution too lowIncrease image size or tile the image
Duplicate boxes on one objectNMS threshold too highLower IoU threshold or tune NMS
Many false positivesConfidence threshold too lowRaise threshold, add hard negatives
Good validation, poor field resultsDomain shift in lighting or viewpointCollect and label in-domain images
Merged boxes in crowdsHeavy occlusionUse crowd-aware NMS or segmentation
Frequent YOLO problems and their fixes

A common misconception is that YOLO tracks objects across frames. It detects objects independently in each frame; identity over time requires a separate object tracking algorithm such as ByteTrack or DeepSORT. Licensing also deserves attention, because several popular YOLO implementations use copyleft licenses that affect commercial products.

Stripped to the essentials

YOLO is software that looks at a picture and finds the things in it. It draws a labeled box around each person, car or dog it recognizes. Older systems examined a picture piece by piece, which was slow. YOLO takes in the whole picture at once and makes all its guesses in a single step.

That single glance is why it is called You Only Look Once and why it is fast enough for live video. The trade-off is that tiny or crowded objects are harder for it to separate. For best results, it is trained on examples from the place where it will work.

Where it is applied

A regional logistics warehouse wants to detect forklifts entering pedestrian walkways. The engineering team fine-tunes a small YOLO model on about 4,000 labeled frames from its own ceiling cameras, covering forklifts, pallet jacks and workers under day and night lighting. The model is exported to TensorRT with INT8 quantization and runs on an edge computer handling eight camera streams at about 25 frames per second each.

When a forklift box overlaps a marked walkway zone while a worker is detected nearby, the system triggers a warning light within roughly 100 milliseconds. After two weeks of tuning the confidence threshold and adding images of reflective vests that caused false alarms, the team reports a sharp drop in near-miss incidents and keeps a human review step for every logged alert.