All models

ultralytics_yolo12m_det

YOLO12 is a real-time object detector with an attention-centric architecture.

Detection and tracking · 645 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (42 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
YOLO12
Parameters
20.2M
Operations
645
Framework
PyTorch
Recurrent
No
Published
2025
License
AGPL-3.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10744
Graph hash
2723c0b4bdc64eafaa5e99facaf9ab08cc74109762ca0fc9bcbca2bf1d4870d4
Skeleton hash
d25399b66e590591bc2adf0839d9771effaf06f264e367b2e607b947cd89fb47
Architecture hash
ddf23802afbbe6e4852ee343ea2a113208f41b2947899af2d720e46547e97b52
Diagram SHA-256
fb1ade4fa9457cb6ddfb91a3de73a3ad27254534795d19ed3b2d39cca21a9c68
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

ultralytics.nn.tasks.DetectionModel('yolo12m.yaml', verbose=False)

What it is

Ultralytics lists the pretrained YOLO12m at 52.5 mAP 50-95 on COCO val2017 with an image size of 640 pixels.

About this model's family

YOLO12 is a real-time object detector, released in early 2025, that moves the YOLO line away from a convolution-based design toward one centered on attention. Its area attention mechanism divides a feature map into equal-sized regions, four by default, either horizontally or vertically, which lowers the computational cost compared with standard self-attention. Features are combined by Residual Efficient Layer Aggregation Networks (R-ELAN), a module based on ELAN that adds block-level residual connections with scaling. The attention blocks leave out positional encoding, and a 7x7 separable convolution called the position perceiver encodes position implicitly.

Ultralytics describes YOLO12 as a community-driven release that may show training instability, elevated memory consumption and slower CPU throughput because of its heavy attention blocks. The design comes from the paper "YOLOv12: Attention-Centric Real-Time Object Detectors", published in the NeurIPS 2025 proceedings.

Key idea. YOLO12 introduces an attention-centric YOLO architecture, with an area attention mechanism and R-ELAN feature aggregation, while keeping real-time inference speed.

  • yolo12
  • yolov12
  • yolo 12
  • attention-centric object detection
  • real-time object detection
  • area attention
  • r-elan
  • ultralytics yolo12

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.