2025-02-19 · 进阶 · 计算机视觉 · 机器学习

YOLOv12: Attention-Centric Real-Time Object Detectors

YOLOv12通过引入注意力机制,实现了实时目标检测的高精度和低延迟。

更新于 2026-11-28。作者:Yunjie Tian、Qixiang Ye、David Doermann。

中文摘要

增强YOLO框架的网络架构长期以来至关重要,但尽管注意力机制在建模能力上已被证明具有优越性,改进工作仍然主要集中于基于CNN的改进。这是因为基于注意力的模型无法与基于CNN的模型的速度相匹配。本文提出了一种以注意力为中心的YOLO框架,即YOLOv12,它在速度上与之前的基于CNN的模型相匹配的同时,利用了注意力机制的性能优势。YOLOv12在精度上超越了所有流行的实时目标检测器,同时保持了有竞争力的速度。例如,YOLOv12-N在T4 GPU上实现了40.6%的mAP,推理延迟为1.64毫秒,比先进的YOLOv10-N / YOLOv11-N高出2.1%/1.2%的mAP,而速度相当。这一优势也扩展到其他模型规模。YOLOv12还超越了改进了DETR的端到端实时检测器,例如RT-DETR / RT-DETRv2:YOLOv12-S在运行速度上快42%,仅使用36%的计算量和45%的参数,就击败了RT-DETR-R18 / RT-DETRv2-R18。更多比较结果见图1。

英文摘要

Enhancing the network architecture of the YOLO framework has been crucial for a long time, but has focused on CNN-based improvements despite the proven superiority of attention mechanisms in modeling capabilities. This is because attention-based models cannot match the speed of CNN-based models. This paper proposes an attention-centric YOLO framework, namely YOLOv12, that matches the speed of previous CNN-based ones while harnessing the performance benefits of attention mechanisms. YOLOv12 surpasses all popular real-time object detectors in accuracy with competitive speed. For example, YOLOv12-N achieves 40.6% mAP with an inference latency of 1.64 ms on a T4 GPU, outperforming advanced YOLOv10-N / YOLOv11-N by 2.1%/1.2% mAP with a comparable speed. This advantage extends to other model scales. YOLOv12 also surpasses end-to-end real-time detectors that improve DETR, such as RT-DETR / RT-DETRv2: YOLOv12-S beats RT-DETR-R18 / RT-DETRv2-R18 while running 42% faster, using only 36% of the computation and 45% of the parameters. More comparisons are shown in Figure 1.

解读

一句话总结

YOLOv12通过引入注意力机制,实现了实时目标检测的高精度和低延迟。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源