YOLO stands for "you only look once": object detection as a regression problem, one forward pass emitting every box and class, rather than the two-stage approach of proposing regions and then classifying them.
YOLO26 is the version Ultralytics shipped in January 2026. It does not chase a bigger network; it cuts the redundant parts of the inference path — no DFL, no NMS, a different optimizer. For anyone deploying to edge hardware, those changes matter more than another two points of mAP.
🎯 1. What YOLO Is
Detection does two things: find where the object is and decide what it is. Two-stage methods generate candidate regions and classify them one by one — accurate but slow. Single-stage methods regress boxes and classes directly on a feature map — fast.
YOLO is single-stage, iterating from v1 in 2015 through v11 and now YOLO26. The v5, v8, and v11 lines are maintained by Ultralytics and are what most production systems actually run.
YOLO26's positioning is in the name: built for edge devices. One API covers detection, instance segmentation, semantic segmentation, pose estimation, oriented bounding boxes, classification, and depth estimation, in five sizes from n to x.
🔧 2. Four Design Changes
DFL removed. Earlier versions regressed boundaries with Distribution Focal Loss, splitting coordinates into a discrete distribution and taking the expectation. Accuracy was good, but operator support on low-power accelerators was poor. Dropping it makes the head lighter and the exported graph simpler.
End-to-end without NMS. The traditional pipeline runs non-maximum suppression after inference to remove overlapping boxes; that step scales with the number of boxes, so latency is unstable. YOLO26 adds a one-to-one detection head that outputs final results directly — with nms=False there is no post-processing at all.
ProgLoss + STAL. Progressive loss balancing shifts training focus gradually toward the head that inference actually uses, and small-target-aware label assignment lets distant, tiny objects obtain positive samples. Together they reduce missed small objects.
MuSGD optimizer. A hybrid of SGD and Muon, borrowed from large-model training (Kimi K2). Convergence is steadier on long runs, and optimizer=auto selects it automatically.
📊 3. Choosing Among Five Sizes
Official COCO numbers at 640 input:
| Model | mAP 50-95 | End-to-end mAP | CPU ONNX | T4 TensorRT | Params | FLOPs |
|---|---|---|---|---|---|---|
| YOLO26n | 40.9 | 40.1 | 38.9 ms | 1.7 ms | 2.4M | 5.5B |
| YOLO26s | 48.6 | 47.8 | 87.2 ms | 2.5 ms | 9.5M | 20.9B |
| YOLO26m | 53.1 | 52.5 | 220.0 ms | 4.7 ms | 20.4M | 68.4B |
| YOLO26l | 55.0 | 54.4 | 286.2 ms | 6.2 ms | 24.8M | 86.8B |
| YOLO26x | 57.5 | 56.9 | 525.8 ms | 11.8 ms | 55.7M | 194.4B |
A few things to watch when reading it. The CPU column is ONNX measured on an Intel Xeon at 2.00 GHz; the n model is 43% faster than YOLO11n, which is the headline number — do not extrapolate it to every size. The end-to-end column is accuracy with nms=False, 0.6 to 0.8 points lower than the default path, traded for stable latency.
Start at n and work upward: confirm n is fast enough on your hardware, then climb sizes and see how much accuracy you gain. Most edge deployments stop at s or m.
💻 4. Environment and Inference
Installation is one line; the ultralytics package handles weights and downloads.
pip install ultralytics
Minimal inference, reading one image and printing boxes:
from ultralytics import YOLO
model = YOLO("yolo26n.pt") # weights download on first run
results = model("street.jpg", conf=0.25, iou=0.5)
for box in results[0].boxes:
cls_id = int(box.cls.item())
score = float(box.conf.item())
x1, y1, x2, y2 = box.xyxy[0].tolist()
print(model.names[cls_id], round(score, 3), [round(v) for v in (x1, y1, x2, y2)])
results[0].save("street_det.jpg")
To take the end-to-end path, flip one switch. Video, cameras, and directories all work the same way:
results = model("rtsp://192.168.1.20:554/live", nms=False, stream=True)
for r in results:
...
boxes, masks, and keypoints map to detection, segmentation, and pose; all live on the same results object.
🏋️ 5. Training on Your Own Dataset
One point that trips people up first: Ultralytics trains on the YOLO format — one object per line, class cx cy w h all normalized to 0..1 — not COCO JSON. COCO and VOC annotations convert with the official scripts.
Dataset layout and config:
defect/
├── images/train/*.jpg
├── images/val/*.jpg
├── labels/train/*.txt
└── labels/val/*.txt
path: /data/defect
train: images/train
val: images/val
names:
0: scratch
1: dent
Training is a Python snippet where four arguments decide the outcome:
from ultralytics import YOLO
model = YOLO("yolo26n.pt") # start from pretrained; steadier than scratch
model.train(
data="defect.yaml",
epochs=100,
imgsz=640, # bump to 1024 for many small objects; cheaper than a bigger model
batch=16,
device=0,
patience=20, # early stop after 20 flat epochs
)
Training prints per-epoch mAP and losses live; artifacts land in runs/detect/train/ with weights, curves, and a confusion matrix. Augmentation defaults are already tuned, and mosaic switches off automatically in the last 10 epochs.
📏 6. Validation and Export
Validate before deciding the deployment form:
from ultralytics import YOLO
m = YOLO("runs/detect/train/weights/best.pt")
metrics = m.val(data="defect.yaml", imgsz=640, batch=16)
print(metrics.box.map, metrics.box.map50)
m.export(format="onnx", imgsz=640, nms=False)
m.export(format="engine", imgsz=640, half=True) # TensorRT, needs NVIDIA
Export covers ONNX, TensorRT, OpenVINO, CoreML, TFLite, and twenty-odd more. nms=False exports the NMS-free head along with the model, removing post-processing, but some target formats do not support it — read the message when exporting.
⚖️ 7. Is End-to-End Worth It
The default path is a one-to-many head plus NMS for maximum accuracy; nms=False uses the one-to-one head and emits results directly. The two pipelines differ only in the last step:
- Default: one-to-many head → many candidate boxes → NMS deduplication by score → results.
- End-to-end: one-to-one head → final boxes directly → results.
Take the switch when the latency budget is tight, box counts make NMS the bottleneck, the target accelerator has no NMS operator, or you want a graph with one input and one output.
Skip it when accuracy comes first or objects are dense and overlapping. The one-to-one head tends to merge neighboring boxes under heavy overlap, and NMS is actually more stable there.
🚧 8. Engineering Limits
Small objects remain hard. Raising input resolution, tiled inference, and adding small-object samples usually pay off more than a bigger model.
For dense and occluded scenes, tune the iou threshold and confidence first, then consider a larger size. When class definitions are vague, no mAP number means anything — annotation consistency is the ceiling.
Check the license: Ultralytics code and models are AGPL-3.0 by default, so closed-source commercial use means an enterprise license or a different implementation. Confirm this at selection time, not the week before launch.
Last note: the 43% CPU speedup is ONNX numbers for the n model on a specific CPU, not a blanket promise. Running it on your own hardware beats any leaderboard.
Top comments (0)