All models

yolo12n-cls

Ultralytics YOLO image classifiers from yolov8 to yolo26 in five scales, plus ResNet-backbone variants.

Image classification · 393 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 (32 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

Parameters
3M
Operations
393
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
m11366
Graph hash
012c2695b85c04242742fd352fb854bdf0ae3f2c0a01fee3ca8baf4a5a888e18
Skeleton hash
43a8a184515239ab9bbbb0c37b5bd64b3ccf0a589107bb04ae9c685176b9d898
Architecture hash
090d0fdb75a83bedf827a0a4cfde911de72cf30a873bebc10f33dddac4dc1a73
Diagram SHA-256
c25893de48a72e3ad66f811c447e2b44e182f91668011c3b0568ee9caacd4237
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

These are the YOLO image classifiers of the ultralytics library, built by its ClassificationModel class, which implements the YOLO classification architecture for image classification tasks. The documentation was captured from the library at version 8.4.172.

Each model is built from a YAML configuration dictionary and holds the network as a torch Sequential, along with its stride values and a class-name dictionary. A reshape method updates the model to a specified class count. The documented example builds the yolo26n-cls configuration with three input channels and 1000 classes.

Key idea. A single ClassificationModel class that builds YOLO image classifiers from a YAML configuration and can reshape its outputs to a specified class count.

  • YOLO classification
  • yolov8-cls
  • yolo11-cls
  • yolo12-cls
  • yolo26-cls
  • yolov8-cls-resnet50
  • yolo11-cls-resnet18
  • ultralytics
  • ClassificationModel
  • image classification

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