Skip to content
imaged

Instance segmentation

YOLO26n-seg

Finds objects of 80 everyday classes and outlines each one with its own pixel mask. The most widely used family of real-time models. AGPL-3.0.

AGPL-3.0instance segmentationmasksyoloultralyticscocoagpl-3.0
Choose a variant

About this model

YOLO26n-seg finds people, vehicles, animals and everyday objects (the 80 COCO classes) and, for each one, a mask of exactly which pixels belong to it. Two people standing side by side get two separate masks.

It is the smallest segmentation model of Ultralytics' YOLO26 family: 3.1 million parameters, end to end without a separate NMS step.

What you can build

  • Cut out or blur individual people or objects
  • Measure how much of a scene each object covers
  • Count overlapping objects that boxes alone would merge
  • Feed precise object shapes to tracking or AR effects

People crossing street

f16
Input
People crossing street (Unsplash)

Mike Petrucci mikepetrucci, CC0, https://commons.wikimedia.org/wiki/File:People_crossing_street_(Unsplash).jpg

Output
The photo with the 15 objects found by YOLO26n-seg colored by their masks
15 objects on the Metal (FP16 pack), score 0.25 or more:
person 0.81 at [121, 359, 166, 450], 2284 mask pixels
person 0.81 at [381, 352, 432, 448], 2383 mask pixels
person 0.75 at [769, 372, 799, 438], 1353 mask pixels
traffic light 0.73 at [66, 155, 91, 221], 1609 mask pixels
person 0.72 at [523, 359, 566, 444], 1845 mask pixels
traffic light 0.51 at [882, 252, 900, 298], 782 mask pixels
person 0.51 at [493, 365, 525, 439], 1222 mask pixels
person 0.51 at [66, 350, 85, 416], 964 mask pixels
motorcycle 0.48 at [0, 387, 53, 448], 2083 mask pixels
person 0.45 at [439, 371, 464, 427], 870 mask pixels
car 0.42 at [873, 407, 960, 497], 6156 mask pixels
truck 0.37 at [226, 350, 328, 424], 6359 mask pixels
car 0.37 at [226, 350, 328, 424], 6359 mask pixels
traffic light 0.34 at [850, 249, 870, 296], 890 mask pixels
person 0.29 at [701, 373, 718, 414], 583 mask pixels

Cyclists road

f16
Input
0014Outdoor location photo shoot group photographs of deaf-mute road cyclists 34

Judgefloro, CC0, https://commons.wikimedia.org/wiki/File:0014Outdoor_location_photo_shoot_group_photographs_of_deaf-mute_road_cyclists_34.jpg

Output
The photo with the 6 objects found by YOLO26n-seg colored by their masks
6 objects on the Metal (FP16 pack), score 0.25 or more:
person 0.93 at [0, 294, 160, 715], 51142 mask pixels
person 0.93 at [651, 117, 958, 714], 141673 mask pixels
person 0.88 at [172, 333, 305, 717], 32456 mask pixels
person 0.74 at [268, 294, 346, 458], 7802 mask pixels
person 0.60 at [284, 157, 701, 713], 142198 mask pixels
person 0.44 at [152, 315, 222, 619], 8948 mask pixels

Farm animals

f16
Input
Flock of sheep

Keith Weller, Public domain, https://commons.wikimedia.org/wiki/File:Flock_of_sheep.jpg

Output
The photo with the 12 objects found by YOLO26n-seg colored by their masks
12 objects on the Metal (FP16 pack), score 0.25 or more:
sheep 0.95 at [336, 646, 850, 1377], 216308 mask pixels
sheep 0.93 at [711, 568, 959, 1305], 114038 mask pixels
sheep 0.93 at [0, 729, 394, 1424], 160275 mask pixels
sheep 0.80 at [0, 521, 334, 795], 63876 mask pixels
sheep 0.72 at [718, 417, 958, 620], 32418 mask pixels
sheep 0.54 at [688, 367, 937, 515], 16580 mask pixels
sheep 0.54 at [197, 350, 709, 552], 49395 mask pixels
sheep 0.48 at [181, 315, 503, 460], 27750 mask pixels
sheep 0.46 at [475, 507, 765, 757], 42361 mask pixels
sheep 0.39 at [0, 323, 212, 463], 19688 mask pixels
sheep 0.38 at [178, 484, 483, 740], 42179 mask pixels
sheep 0.28 at [11, 362, 699, 555], 71094 mask pixels

Variants & downloads

Choose the build for your app

Model files are hosted on Google Drive. Large files may open a confirmation page before downloading.

Small

Slab

Weights stored as int8 in blocks of 64. Slab decodes them to float when loading, so it runs at the same speed; results move more than with FP16 (see Accuracy).

Platforms: macos · android

yolo26n-seg-int8.slab

6.4 MB · Hosted download

Download
SHA-256 checksum
5b3566bdef890c310a8f7262cc96be8e177bb24cfcae1b99d4d2a30eb7a686c2

LICENSE-Ultralytics-AGPL-3.0.txt

34 KB

Download
SHA-256 checksum
e1b7f9004d68111ffbca78fc51137d478450fdebb0896d773cb0cbbd0df2aecb
Conversion details
command
python -c "import ultralytics; ultralytics.YOLO('yolo26n-seg.pt').export(format='onnx', imgsz=640, opset=17)" && mv yolo26n-seg.onnx model.onnx # Ultralytics writes the export date into the model; a rebuilt pack differs from this one only in its date entry python -c "import ultralytics; n = ultralytics.YOLO('yolo26n-seg.pt').names; open('labels.txt', 'w').write('\n'.join(n[k] for k in range(len(n))))" slab-load convert model.onnx model.slab --input images=1x3x640x640 --meta task=segment --meta resize=letterbox --meta letterbox_pad:i64=114 --meta normalize=scale255 --meta color=rgb --meta labels:labels=@labels.txt --meta fp16_safe:i64=0 slab-load quantize model.slab yolo26n-seg-int8.slab slab-load meta set yolo26n-seg-int8.slab default_backend.macos=gpu

Integration examples

Python

python

import slab

cfg = slab.Config(cache_dir="/tmp/slab_cache", license=open("license.slablic.txt").read())
session = slab.Session(cfg, "yolo26n-seg-f16.slab", warmup=True)
photo = slab.Frame.open("photo.jpg")
out = session.run(slab.Input(frame=photo))
for b in out.boxes(score_threshold=0.25, iou_threshold=1.0):
    mask = b.mask   # Gray8 Frame, the box's size, 255 on the object
    print(b.label, round(b.score, 2), b.x1, b.y1, b.x2, b.y2, mask.width, mask.height)

Device & backend compatibility

Pack default: macos / GPU. The fastest backend that runs it on the Mac (about 7 ms per frame); the Neural Engine is not supported.

Available execution backends for YOLO26n-seg
PlatformEngineStatusPrecision
apple

CPU

CPU

Supported

Measured on macOS.

f32
apple

Metal

GPU

Supported

Measured on macOS. The default.

f32
apple

Apple Neural Engine

NPU

Not supported

The box-selection step computes indices beyond FP16's exact range on the Neural Engine and picks wrong objects (38 of 177 matched in our check). The pack marks itself not FP16-safe, so Slab's automatic choice skips it.

—
android

CPU

CPU

Supported

Measured on a Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2, Adreno 740), Android 17.

f32
android

Vulkan

GPU

Supported

Measured on a Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2, Adreno 740), Android 17.

f32
android

Qualcomm Hexagon NPU (QNN)

NPU

Not supported

Tried on a Samsung Galaxy S23 Ultra (Hexagon v73): Slab's QNN backend has no translation for TopK (the box selection) yet.

—

Performance

Results depend on the device, runtime, and test conditions. Each measurement keeps its own context.

Mac with Apple M1 Max

Slab · CPU

macOS 26.6.2

53.2 ms

Measured time · scope below

int8Session open (ms): 26 Platform: macos Runs: 100 Input: 1, 3, 640, 640 Measured: 2026-10-28

Median of 100 warm runs of the model (Slab's run time). From a 1920 x 1080 photo, resizing included: 53.77 ms median. Making the masks of 14 objects at 1920 x 1080 adds 0.4 ms.

Mac with Apple M1 Max

Slab · GPU

macOS 26.6.2

7.0 ms

Measured time · scope below

int8Session open (ms): 22 Platform: macos Runs: 100 Input: 1, 3, 640, 640 Measured: 2026-10-28

Median of 100 warm runs of the model (Slab's run time). From a 1920 x 1080 photo, resizing included: 9.70 ms median. Making the masks of 14 objects at 1920 x 1080 adds 0.4 ms.

Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2)

Slab · CPU

Android 17

209.0 ms

Measured time · scope below

int8Session open (ms): 30 Platform: android Runs: 53 Input: 1, 3, 640, 640 Measured: 2026-11-06

Median of 53 warm runs of the model (Slab's run time). From a 1920 x 1080 photo, resizing included: 197 ms median. open_ms: opening the session. Peak memory (resident) after the runs: 177 MB.

Samsung Galaxy S23 Ultra (Snapdragon 8 Gen 2)

Slab · GPU

Android 17

93.7 ms

Measured time · scope below

int8Session open (ms): 71 Platform: android Runs: 100 Input: 1, 3, 640, 640 Measured: 2026-11-06

Median of 100 warm runs of the model (Slab's run time). From a 1920 x 1080 photo, resizing included: 81.1 ms median. open_ms: opening the session with the GPU programs already in the cache folder (the first open on a device compiles them, about 0.3 s more). Peak memory (resident) after the runs: 96 MB.

Accuracy checks

macos · CPU · int8

Ultralytics' PyTorch model on its fixed 640 letterbox, boxes scaled back with ops.scale_boxes and masks made at the photo's size with ops.process_mask_native (predict with retina_masks=True); score 0.25, 67 public-domain and CC0 photos (Wikimedia Commons); objects match with the same class and box IoU 0.5 or more, and their masks are compared over the whole photo

With Slab preprocessing, boxes and masks: 167 of 177 objects matched (box IoU 0.987), 3 extra; mask IoU 0.987 on average, 0.859 at worst. On identical input tensors: 168 of 177 matched, mask IoU 0.987.

macos · GPU · int8

Ultralytics' PyTorch model on its fixed 640 letterbox, boxes scaled back with ops.scale_boxes and masks made at the photo's size with ops.process_mask_native (predict with retina_masks=True); score 0.25, 67 public-domain and CC0 photos (Wikimedia Commons); objects match with the same class and box IoU 0.5 or more, and their masks are compared over the whole photo

With Slab preprocessing, boxes and masks: 167 of 177 objects matched (box IoU 0.987), 3 extra; mask IoU 0.987 on average, 0.859 at worst. On identical input tensors: 168 of 177 matched, mask IoU 0.987.

Before you choose this model

  • Only the 80 COCO classes.
  • Masks are computed at a quarter of the 640 x 640 input and resized, so very thin parts (bicycle spokes, hair) are smoothed.
  • The Neural Engine is not supported: the box-selection step's index arithmetic overflows in FP16 there, as with YOLO26n.
  • AGPL-3.0: shipping it in a product means releasing that product's source under the AGPL, unless you buy an Ultralytics Enterprise license.