All models

ultralytics_yolo12n_det

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

Detection and tracking · 611 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
2.6M
Operations
611
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
m10745
Graph hash
2fb3cea589fc321d07f5c93774a7eddaee5333a84769911788dfe0d9d836a49a
Skeleton hash
a19765f444a68836b9a42e82b29f1ee5b007640eb32eff81802b41e31d4bdee0
Architecture hash
a955490c729956257dd38fe934702649f9b52a2a3523f17fae1afad49f464567
Diagram SHA-256
90e765da22f41c0d62eae73402b5c23a9d915f4d9d92053e7e45a6fba47bbb15
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('yolo12n.yaml', verbose=False)

What it is

Ultralytics lists the pretrained YOLO12n at 40.6 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.