YOLOv12 vs YOLOv4

Compare YOLOv12 and YOLOv4 side-by-side.

Compare YOLOv12 vs YOLOv4 live

Run the same image across every model that supports a task and compare their outputs side-by-side.

These models don't share enough common tasks for a side-by-side demo. See the comparison table below for their capabilities.

Models in this comparison

YOLOv12 vs YOLOv4: Overview

YOLOv12

YOLOv12 is an attention-centric real-time object detection model developed by researchers at Tsinghua University, with the arXiv paper published in February 2025 under the AGPL-3.0 license. It introduces an Area Attention module that partitions feature maps into regions and applies self-attention within each region, reducing the quadratic complexity of full self-attention while capturing long-range dependencies. It also incorporates R-ELAN for improved feature aggregation and scaled residual connections for training stability.

YOLOv12-L achieves 54.0% AP on COCO, while the YOLOv12-N variant achieves 40.5% mAP at 1.62ms latency on an NVIDIA T4 GPU. The model is built on the Ultralytics codebase, supporting detection, segmentation, and other standard YOLO tasks at competitive real-time speeds.

YOLOv4

YOLOv4 is an object detection model developed by Alexey Bochkovskiy, Chien-Yao Wang, and Hong-Yuan Mark Liao at Academia Sinica, released in April 2020 via the Darknet framework. It combines a CSPDarknet53 backbone, PANet neck, and YOLOv3 detection head with a large set of training improvements — Bag of Freebies and Bag of Specials — that improve accuracy with minimal inference cost increase.

YOLOv4 achieves 43.5% AP on COCO at 65 FPS on a Tesla V100 GPU. The Darknet implementation is the original version, distinguishing it from subsequent PyTorch-based reimplementations. It remains a widely referenced detection architecture and a supported training target in Roboflow Inference.

YOLOv12 vs YOLOv4 Comparison Table

PropertyYOLOv12YOLOv4
OrganizationTHU-MIGAcademia Sinica
Categoryopenopen
Modalityvisionvision
Release DateFeb 2025Apr 2020
Context Window
Parameters2.6M-59.1M
LicenseAGPL 3.0
Vision Tasks
Object Detection
Classification
Instance Segmentation
Pose Estimation
Model Features
Real-Time Vision