
ultralytics_yolo12s_det
Detection and tracking611 ops9.3M params
YOLO12 is a real-time object detector with an attention-centric architecture.
Detection and tracking · 611 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
ultralytics.nn.tasks.DetectionModel('yolo12n.yaml', verbose=False) 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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.