Skip to content
ModelsThatRun

YOLOv5u

YOLOv5's backbone with the anchor-free split head of YOLOv8, five sizes from n to x on COCO's 80 classes, run through Ultralytics. AGPL-3.0.

Size

Conditional for size n: code AGPL-3.0-only, weights AGPL-3.0-only. Measured on our RTX 4090: 10.1 ms median, 512 MiB VRAM peak. We scored it 34.0 box AP on COCO val2017. PyTorch weights, 5 MB.

License

Conditional

Code
AGPL-3.0-onlychecked 3 Dec 2026
Weights
AGPL-3.0-onlyall sizes, checked 3 Dec 2026

Ultralytics licenses the code and the weights under AGPL-3.0, or its paid Enterprise license: shipping it in a product means releasing your source.

On our RTX 4090, measured

10.1ms median

p90 10.4 ms, fp16, batch 1, 640x448

VRAM peak
512 MiB
Status
Runs as is

Phases of one call

Pre-processing
1.3 ms
Network
6.7 ms
Post-processing
1.1 ms

Split by the official package's own timer over 20 calls, with a synchronize after each phase. Its timer leaves out about 3.4 ms of the 12.5 ms call there, such as converting the input and building the result, so the phases don't add up to the median.

Environment, 3 Dec 2026

NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, Python 3.12.9, ultralytics==8.4.189. Baseline 863 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

TensorRT fp16: 5.4 msour engine, measured

Accuracy

34.0box APmeasured

COCO val2017, box AP, 5,000 images, fp16, pycocotools==2.0.11 · 3 Dec 2026

Paper 34.3 COCO mAP50-95Ultralytics YOLOv5 docs, YOLOv5u performance table (mAPval 50-95)

Weights

PyTorch

Size
5 MB
sha256
9e9c1be448b0e1b8598975a9abcab9a0fd0e21182eb422cda7f044a0442d0937
Download n weights

Same photos and one score threshold for every model of this task. Failures are marked.

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
n10.1 ms640x448512 MiB34.0 box AP, measured34.3 COCO mAP50-95 paper5 MBAs isConditional
s10.3 ms640x448564 MiB42.8 box AP, measured43 COCO mAP50-95 paper18 MBAs isConditional
m11.7 ms640x448706 MiB48.6 box AP, measured49 COCO mAP50-95 paper48 MBAs isConditional
l13.0 ms640x448920 MiB51.9 box AP, measured52.2 COCO mAP50-95 paper102 MBAs isConditional
x14.6 ms640x4481.3 GiB52.7 box AP, measured53.2 COCO mAP50-95 paper186 MBAs isConditional

Runtimes

Measured on our RTX 4090. Each row is our own measurement, timed under the same protocol and scored through that runtime. The TensorRT engine is built from the authors' own ONNX export of the released weights, with the settings their docs give. The card at the top and the charts use the PyTorch row.

Runtime, size nLatency (input under it)VRAM peakAccuracy (on that runtime)
PyTorchfp16 · torch 2.14.1+cu13010.1 ms640x448512 MiB34.0 box AP, fp16
TensorRT10.16.1.11 · fp165.4 ms640x640546 MiB34.1 box AP, fp16
How the TensorRT engine was made, 3 Dec 2026

TensorRT 10.16.1.11, runs as is. Exported with ultralytics YOLO.export format=engine quantize=16 imgsz=640 device=0, opset 18; ONNX sha256 8e4a96d8bb0e…. Engine sha256 a4a7fd0cb598…, 7 MB, built in 190 s. Builder settings: api ultralytics==8.4.189, which builds with TensorRT's Python API, flags ["FP16"], other the package's own settings, input 1x3x640x640, static, workspace TensorRT's default. NVIDIA GeForce RTX 4090, driver 580.173.02, CUDA 13.0, torch 2.14.1+cu130, ultralytics==8.4.189. 10 warm-up + 100 timed, median of 3 runs. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Estimated on other GPUs

Estimate, not measured. Worked out from our RTX 4090 run and NVIDIA's spec sheets. Each kind of GPU work is scaled by that GPU's peak for it: tensor cores at the precision the kernels used, CUDA cores, or memory bandwidth. The CPU's part of each call is kept at what it took on our Intel Core i7-10700K. How we estimate

Where a call's time goes on our RTX 4090: CPU and kernel launches 90%, memory-bound 6%, tensor cores, FP16 (FP32 accumulate) 3%.

GeForce (13)
GPUFitsLatency
GeForce RTX 5090Blackwell, 32 GB GDDR7Yes≈ 9.8–10 ms
GeForce RTX 5080Blackwell, 16 GB GDDR7Yes≈ 10 ms
GeForce RTX 5070 TiBlackwell, 16 GB GDDR7Yes≈ 10 ms
GeForce RTX 5070Blackwell, 12 GB GDDR7Yes≈ 10–11 ms
GeForce RTX 5060 Ti 16GBBlackwell, 16 GB GDDR7Yes≈ 11–12 ms
GeForce RTX 5060Blackwell, 8 GB GDDR7Yes≈ 11–12 ms
GeForce RTX 4080Ada Lovelace, 16 GB GDDR6XYes≈ 10–11 ms
GeForce RTX 4070 TiAda Lovelace, 12 GB GDDR6XYes≈ 10–11 ms
GeForce RTX 4070Ada Lovelace, 12 GB GDDR6XYes≈ 10–11 ms
GeForce RTX 3090Ampere, 24 GB GDDR6XYes≈ 10–11 ms
GeForce RTX 3080Ampere, 10 GB GDDR6XYes≈ 10–11 ms
GeForce RTX 3070 TiAmpere, 8 GB GDDR6XYes≈ 11 ms
GeForce RTX 3070Ampere, 8 GB GDDR6Yes≈ 11–12 ms
Workstation (4)
GPUFitsLatency
RTX PRO 6000 Blackwell Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 9.6–10.0 ms
RTX PRO 6000 Blackwell Max-Q Workstation EditionBlackwell, 96 GB GDDR7Yes≈ 9.7–10.0 ms
RTX 6000 Ada GenerationAda Lovelace, 48 GB GDDR6Yes≈ 10.0–10 ms
RTX A6000Ampere, 48 GB GDDR6Yes≈ 10 ms
Data center (6)
GPUFitsLatency
B200 (HGX, one GPU)Blackwell, 180 GB HBM3EYes≈ 9.3–9.9 ms
H200 SXMHopper, 141 GB HBM3eYes≈ 9.4–9.9 ms
H100 SXMHopper, 80 GB HBM3Yes≈ 9.4–9.9 ms
A100 SXM 80GBAmpere, 80 GB HBM2eYes≈ 9.7–10 ms
L40SAda Lovelace, 48 GB GDDR6Yes≈ 10 ms
L4Ada Lovelace, 24 GB GDDR6Yes≈ 10–12 ms

CPU only

Measured by us with no GPU on an Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz, 8 cores, 94.2 GiB of memory: the same official code with the GPU hidden, in fp32 on 8 threads. Before it was timed, its output on the timing input was checked against the GPU's. These numbers say what to expect without a GPU. They aren't compared with any GPU's, here or in the charts. How we measure on a CPU

SizeRuntimeLatency on the CPURAM peak
nPyTorch2.14.1 · fp32 · 8 threads21.6 ms640x448808 MiB
nONNX Runtime1.31.1 · fp32 · 8 threads25.5 ms640x640837 MiB
sPyTorch2.14.1 · fp32 · 8 threads40.6 ms640x448865 MiB
sONNX Runtime1.31.1 · fp32 · 8 threads46.1 ms640x640879 MiB
mPyTorch2.14.1 · fp32 · 8 threads90.3 ms640x4481001 MiB
mONNX Runtime1.31.1 · fp32 · 8 threads98.1 ms640x6401017 MiB
lPyTorch2.14.1 · fp32 · 8 threads196 ms640x4481.2 GiB
lONNX Runtime1.31.1 · fp32 · 8 threads181 ms640x6401.3 GiB
xPyTorch2.14.1 · fp32 · 8 threads323 ms640x4481.6 GiB
xONNX Runtime1.31.1 · fp32 · 8 threads324 ms640x6401.7 GiB

ONNX Runtime rows run the authors' own ONNX export with their own ONNX Runtime code, whose pre-processing may differ from the PyTorch code's, so their input can differ too.

From the authors

In their words, with their numbers. Ours are in the cards at the top of this page.

README

Copied from the authors' repository at commit 953b493 on 3 Dec 2026. Numbers and license claims in it are theirs, not measured or checked by us. We removed badges, replaced images with links and adjusted headings.

中文 | 한국어 | 日本語 | Русский | Deutsch | Français | Español | Português | Türkçe | Tiếng Việt | العربية

Ultralytics creates cutting-edge, state-of-the-art (SOTA) YOLO models built on years of foundational research in computer vision and AI. Constantly updated for performance and flexibility, our models are fast, accurate, and easy to use. They excel at object detection, instance segmentation, semantic segmentation, depth estimation, image classification, pose estimation, and oriented object detection tasks, and can track detected objects across video frames.

Find detailed documentation in the Ultralytics Docs. Get support via GitHub Issues. Join discussions on Discord, Reddit, and the Ultralytics Community Forums!

Request an Enterprise License for commercial use at Ultralytics Licensing.

Figure YOLO26 performance plots

📄 Documentation

See below for quickstart installation and usage examples. For comprehensive guidance on training, validation, prediction, and deployment, refer to our full Ultralytics Docs.

Install

Install the ultralytics package, including all requirements, in a Python>=3.8 environment with PyTorch>=1.8.

pip install ultralytics

For alternative installation methods, including Conda, Docker, and building from source via Git, please consult the Quickstart Guide.

Usage
CLI

You can use Ultralytics YOLO directly from the Command Line Interface (CLI) with the yolo command:

# Predict using a pretrained YOLO model (e.g., YOLO26n) on an image
yolo predict model=yolo26n.pt source='https://ultralytics.com/images/bus.jpg'

The yolo command supports various tasks and modes, accepting additional arguments like imgsz=640. Explore the YOLO CLI Docs for more examples.

Python

Ultralytics YOLO can also be integrated directly into your Python projects. It accepts the same configuration arguments as the CLI:

from ultralytics import YOLO

# Load a pretrained YOLO26n model
model = YOLO("yolo26n.pt")

# Train the model on the COCO8 dataset for 100 epochs
train_results = model.train(
    data="coco8.yaml",  # Path to dataset configuration file
    epochs=100,  # Number of training epochs
    imgsz=640,  # Image size for training
    device="cpu",  # Device to run on (e.g., 'cpu', 0, [0,1,2,3])
)

# Evaluate the model's performance on the validation set
metrics = model.val()

# Perform object detection on an image
results = model("path/to/image.jpg")  # Predict on an image
results[0].show()  # Display results

# Export the model to ONNX format for deployment
path = model.export(format="onnx")  # Returns the path to the exported model

Discover more examples in the YOLO Python Docs.

✨ Models

YOLO27 — Coming Soon: Preview the upcoming family, currently undergoing final R&D. Models are not yet available, and no launch date is set.

Ultralytics supports a wide range of YOLO models, from early versions like YOLOv3 to the latest YOLO26. The tables below showcase YOLO26 models pretrained on COCO for Detection, Segmentation, and Pose Estimation. Semantic Segmentation models are pretrained on Cityscapes, Depth Estimation models are pretrained on a broad multi-dataset mix and evaluated on NYU Depth V2, Classification models are pretrained on ImageNet, and OBB models are pretrained on DOTAv1. Tracking mode is compatible with Detection, Segmentation, Pose, and OBB models. The listed pretrained models download automatically from the latest Ultralytics release on first use.

Figure Ultralytics YOLO supported tasks
Detection (COCO)

Explore the Detection Docs for usage examples. These models are trained on the COCO dataset, featuring 80 object classes.

Modelsize
(pixels)
mAPval
50-95
mAPval
50-95(e2e)
Speed
CPU ONNX
(ms)
Speed
T4 TensorRT10
(ms)
params
(M)
FLOPs
(B)
YOLO26n64040.940.138.9 ± 0.71.7 ± 0.02.45.5
YOLO26s64048.647.887.2 ± 0.92.5 ± 0.09.520.9
YOLO26m64053.152.5220.0 ± 1.44.7 ± 0.120.468.4
YOLO26l64055.054.4286.2 ± 2.06.2 ± 0.224.886.8
YOLO26x64057.556.9525.8 ± 4.011.8 ± 0.255.7194.4
  • mAPval values refer to single-model single-scale performance on the COCO val2017 dataset. See YOLO Performance Metrics for details.
    Reproduce with yolo val detect data=coco.yaml device=0. Add nms=False to reproduce the e2e column.
  • Speed metrics are averaged over COCO val images using an Amazon EC2 P4d instance. CPU speeds measured with ONNX export. GPU speeds measured with TensorRT export.
    Reproduce with yolo val detect data=coco.yaml batch=1 device=0|cpu nms=False
Segmentation (COCO)

Refer to the Segmentation Docs for usage examples. These models are trained on COCO-Seg, including 80 classes.

Modelsize
(pixels)
mAPbox
50-95(e2e)
mAPmask
50-95(e2e)
Speed
CPU ONNX
(ms)
Speed
T4 TensorRT10
(ms)
params
(M)
FLOPs
(B)
YOLO26n-seg64039.633.953.3 ± 0.52.1 ± 0.02.79.3
YOLO26s-seg64047.340.0118.4 ± 0.93.3 ± 0.010.434.5
YOLO26m-seg64052.544.1328.2 ± 2.46.7 ± 0.123.6121.7
YOLO26l-seg64054.445.5387.0 ± 3.78.0 ± 0.128.0140.1
YOLO26x-seg64056.547.0787.0 ± 6.816.4 ± 0.162.8314.0
  • mAPval values are for single-model single-scale on the COCO val2017 dataset. See YOLO Performance Metrics for details.
    Reproduce with yolo val segment data=coco.yaml device=0 nms=False
  • Speed metrics are averaged over COCO val images using an Amazon EC2 P4d instance. CPU speeds measured with ONNX export. GPU speeds measured with TensorRT export.
    Reproduce with yolo val segment data=coco.yaml batch=1 device=0|cpu nms=False
Semantic Segmentation (Cityscapes)

See the Semantic Segmentation Docs for usage examples. These models are trained on Cityscapes, including 19 classes.

Modelsize
(pixels)
mIoUvalSpeed
RTX3090 PyTorch
(ms)
params
(M)
FLOPs
(B)
YOLO26n-sem1024 × 204878.34.4 ± 0.01.623.8
YOLO26s-sem1024 × 204880.88.4 ± 0.06.591.0
YOLO26m-sem1024 × 204882.019.9 ± 0.114.3305.5
YOLO26l-sem1024 × 204882.926.5 ± 0.117.8388.2
YOLO26x-sem1024 × 204883.648.9 ± 0.240.1866.9
  • mIoUval values are for single-model single-scale on the Cityscapes validation set.
    Reproduce with yolo semantic val data=cityscapes.yaml device=0 imgsz=2048
  • Speed metrics are averaged over Cityscapes validation images using an RTX3090 instance.
    Reproduce with yolo semantic val data=cityscapes.yaml batch=1 device=0|cpu imgsz=2048
Depth Estimation (NYU Depth V2)

See the Depth Estimation Docs for usage examples. These models are pretrained on a broad multi-dataset mix and evaluated on the NYU Depth V2 Eigen test split, predicting per-pixel depth in meters.

Modelsize
(pixels)
delta1NYUabs_relNYUrmseNYUSpeed
CPU ONNX
(ms)
Speed
T4 TensorRT10
(ms)
params
(M)
FLOPs
(B)
YOLO26n-depth7680.8820.1090.414272.0 ± 27.22.7 ± 0.16.346.9
YOLO26s-depth7680.8960.1040.399393.7 ± 13.13.8 ± 0.013.268.0
YOLO26m-depth7680.9210.0890.364621.5 ± 49.76.0 ± 0.123.3130.4
YOLO26l-depth7680.9300.0830.351821.9 ± 50.77.7 ± 0.127.7157.0
YOLO26x-depth7680.9330.0800.3441240.9 ± 73.313.6 ± 0.257.0301.7
  • delta1NYU is the percentage of pixels where the predicted depth is within a factor of 1.25 of the ground truth, on the NYU Depth V2 Eigen test split (654 images) with multi-scale + horizontal-flip TTA and log-least-squares alignment.
  • Single-scale accuracy without TTA is reproducible with yolo depth val model=yolo26n-depth.pt data=nyu-depth.yaml imgsz=768 device=0 (substitute model= for each size), which uses median (scale-only) alignment and scores lower: delta1 0.783 (n), 0.793 (s), 0.840 (m), 0.853 (l), 0.860 (x).
  • abs_rel is the mean absolute relative error between predicted and ground-truth depth values.
  • rmse is the root mean squared error in meters.
  • Speed is inference-only latency (pre/post-processing excluded) at imgsz=768, batch=1, reported as mean ± std over timed runs after warmup. CPU ONNX is ONNX Runtime fp32 on a 32-core Intel Xeon (Skylake); T4 TensorRT10 is TensorRT fp16 on a Tesla T4.
  • params and FLOPs are measured at 768×768, the training resolution of the released weights.
Classification (ImageNet)

Consult the Classification Docs for usage examples. These models are trained on ImageNet, covering 1000 classes.

Modelsize
(pixels)
acc
top1
acc
top5
Speed
CPU ONNX
(ms)
Speed
T4 TensorRT10
(ms)
params
(M)
FLOPs
(B) at 224
YOLO26n-cls22471.490.15.0 ± 0.31.1 ± 0.02.80.4
YOLO26s-cls22476.092.97.9 ± 0.21.3 ± 0.06.71.5
YOLO26m-cls22478.194.217.2 ± 0.42.0 ± 0.011.64.8
YOLO26l-cls22479.094.623.2 ± 0.32.8 ± 0.014.16.0
YOLO26x-cls22479.995.041.4 ± 0.93.8 ± 0.029.613.5
  • acc values represent model accuracy on the ImageNet dataset validation set.
    Reproduce with yolo val classify data=path/to/ImageNet device=0
  • Speed metrics are averaged over ImageNet val images using an Amazon EC2 P4d instance. CPU speeds measured with ONNX export. GPU speeds measured with TensorRT export.
    Reproduce with yolo val classify data=path/to/ImageNet batch=1 device=0|cpu
Pose (COCO)

See the Pose Estimation Docs for usage examples. These models are trained on COCO-Pose, focusing on the 'person' class.

Modelsize
(pixels)
mAPpose
50-95(e2e)
mAPpose
50(e2e)
Speed
CPU ONNX
(ms)
Speed
T4 TensorRT10
(ms)
params
(M)
FLOPs
(B)
YOLO26n-pose64057.283.340.3 ± 0.51.8 ± 0.02.97.6
YOLO26s-pose64063.086.685.3 ± 0.92.7 ± 0.010.424.1
YOLO26m-pose64068.889.6218.0 ± 1.55.0 ± 0.121.573.3
YOLO26l-pose64070.490.5275.4 ± 2.46.5 ± 0.125.991.7
YOLO26x-pose64071.691.6565.4 ± 3.012.2 ± 0.257.6202.3
  • mAPval values are for single-model single-scale on the COCO Keypoints val2017 dataset. See YOLO Performance Metrics for details.
    Reproduce with yolo val pose data=coco-pose.yaml device=0 nms=False
  • Speed metrics are averaged over COCO val images using an Amazon EC2 P4d instance. CPU speeds measured with ONNX export. GPU speeds measured with TensorRT export.
    Reproduce with yolo val pose data=coco-pose.yaml batch=1 device=0|cpu nms=False
Oriented Bounding Boxes (DOTAv1)

Check the OBB Docs for usage examples. These models are trained on DOTAv1, including 15 classes.

Modelsize
(pixels)
mAPtest
50-95(e2e)
mAPtest
50(e2e)
Speed
CPU ONNX
(ms)
Speed
T4 TensorRT10
(ms)
params
(M)
FLOPs
(B)
YOLO26n-obb102452.478.997.7 ± 0.92.8 ± 0.02.414.8
YOLO26s-obb102454.880.9218.0 ± 1.44.9 ± 0.19.856.7
YOLO26m-obb102455.381.0579.2 ± 3.810.2 ± 0.321.2184.9
YOLO26l-obb102456.281.6735.6 ± 3.113.0 ± 0.225.6232.4
YOLO26x-obb102456.781.71485.7 ± 11.530.5 ± 0.957.6520.1
  • mAPtest values are for single-model multiscale performance on the DOTAv1 test set.
    Reproduce by yolo val obb data=DOTAv1.yaml device=0 split=test nms=False save_json=True and submit merged results to the DOTA evaluation server.
  • Speed metrics are averaged over DOTAv1 val images using an Amazon EC2 P4d instance. CPU speeds measured with ONNX export. GPU speeds measured with TensorRT export.
    Reproduce by yolo val obb data=DOTAv1.yaml batch=1 device=0|cpu nms=False

🧩 Integrations

Our key integrations with leading AI platforms extend the functionality of Ultralytics' offerings, enhancing tasks like dataset labeling, training, visualization, and model management. Discover how Ultralytics, in collaboration with partners like Weights & Biases, Comet ML, Roboflow, and Intel OpenVINO, can optimize your AI workflow. Explore more at Ultralytics Integrations.

Figure Ultralytics active learning integrations

🤝 Contribute

We thrive on community collaboration! Ultralytics YOLO wouldn't be the SOTA framework it is without contributions from developers like you. Please see our Contributing Guide to get started. We also welcome your feedback—share your experience by completing our Survey. A huge Thank You 🙏 to everyone who contributes!

Figure Ultralytics open-source contributors

We look forward to your contributions to help make the Ultralytics ecosystem even better!

📜 License

Ultralytics offers two licensing options to suit different needs:

  • AGPL-3.0 License: This OSI-approved open-source license is perfect for students, researchers, and enthusiasts. It encourages open collaboration and knowledge sharing. See the LICENSE file for full details.
  • Ultralytics Enterprise License: For development and production use, this license enables seamless integration of Ultralytics software and AI models into business products and services, including internal tools, automated workflows, and production deployments, bypassing the open-source requirements of AGPL-3.0. To get started, please contact us via Ultralytics Licensing.

📞 Contact

For bug reports and feature requests related to Ultralytics software, please visit GitHub Issues. For questions, discussions, and community support, join our active communities on Discord, Reddit, and the Ultralytics Community Forums. We're here to help with all things Ultralytics!

Alternatives

Changes

First published . Every model's changes

    • Added, with sizes n, s, m, l, and x

Badge for a README

It says the model ran on our RTX 4090 and links to this page. It carries no number, so it never goes out of date.

ModelsThatRun: ran on RTX 4090
[![ModelsThatRun: ran on RTX 4090](https://modelsthatrun.dev/models/yolov5u/badge.svg)](https://modelsthatrun.dev/models/yolov5u/)

Something wrong on this page, such as a license or a number? Email us.

⇆
InputOutput