Skip to content
ModelsThatRun

YOLOv8-seg

Ultralytics' 2023 YOLO for instance segmentation, five sizes from n to x on COCO's 80 classes, AGPL-3.0 or a paid Enterprise license.

Size

Conditional for size n: code AGPL-3.0-only, weights AGPL-3.0-only. Measured on our RTX 4090: 12.8 ms median, 590 MiB VRAM peak. We scored it 30.1 mask AP on COCO val2017. PyTorch weights, 7 MB.

License

Conditional

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

AGPL-3.0: shipping it in a product means releasing your source, unless you buy an Ultralytics Enterprise license.

On our RTX 4090, measured

12.8ms median

p90 13.4 ms, fp16, batch 1, 640x448

VRAM peak
590 MiB
Status
Runs as is
Environment, 3 Nov 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 801 MiB. 10 warm-up + 100 timed. Scope: predict(): pre-processing, forward pass and post-processing; input file decoded beforehand.

Accuracy

30.1mask APmeasured

COCO val2017, mask AP, 5,000 images, fp16, pycocotools==2.0.11 · 2 Nov 2026

Paper 30.5 COCO mAPmask 50-95Ultralytics YOLOv8 docs, segmentation performance table (mAPmask 50-95, docs/en/models/yolov8.md at commit 4fb6485b)

Weights

PyTorch

Size
7 MB
sha256
a7cd8f929e19…3c423c
Download n weights

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

Sizes

SizeLatencyVRAMAccuracyWeightsRunsLicense
n12.8 ms640x448590 MiB30.1 mask AP, measured30.5 COCO mAPmask 50-95 paper7 MBAs isConditional
s13.0 ms640x448652 MiB36.3 mask AP, measured36.8 COCO mAPmask 50-95 paper23 MBAs isConditional
m14.4 ms640x448782 MiB40.1 mask AP, measured40.8 COCO mAPmask 50-95 paper52 MBAs isConditional
l13.9 ms640x448916 MiB42.1 mask AP, measured42.6 COCO mAPmask 50-95 paper88 MBAs isConditional
x14.0 ms640x4481.1 GiB42.8 mask AP, measured43.4 COCO mAPmask 50-95 paper137 MBAs isConditional

From the authors

Where to read their own account of it.

Alternatives

Model output
Input test photo
⇆
InputOutput