Guide · updated for SAM 3.1
Meta SAM 3 Segmentation: Image and Video Masking Guide Click, box or describe an object, and SAM 3 turns it into a clean mask in seconds. This guide explains how it works, how to get better masks, and how to use them.
At a glance
SAM 3 Segmentation in Six Points
Basics
What Is Segmentation in Meta SAM 3?
Segmentation means marking exactly which pixels belong to an object, rather than drawing a rough box around it. The result is a mask: a precise silhouette you can cut out, recolour, measure or track.
The three classic kinds
- Semantic. Every pixel gets a class, but all objects of that class share one mask: “all people”.
- Instance. Each object gets its own mask and number: person #1, #2, #3.
- Panoptic. Instance masks for objects, plus labels for background areas such as road and sky.
Where SAM 3 fits: it produces instance masks for whatever you prompt, each with a box and a confidence score. Need semantic masks? Merge the instance masks for that prompt. Background areas like “sky” or “road” can be prompted by name too.
Two modes
Visual vs Concept Segmentation
SAM 3 can work in two ways. Pick the one that matches your question: “segment this one thing” or “segment every thing like this”.
- Promptable Visual Segmentation (PVS). Clicks, boxes or masks segment one specific object per prompt. This is what SAM 1 and SAM 2 do, and SAM 3 does it too.
- Promptable Concept Segmentation (PCS). A short phrase or an example image finds every matching object, and returns nothing if there is none. This is new in SAM 3.
- Mix them. Run a concept prompt to get every match, then add a click to fix one mask.
More on concept prompts on our SAM 3 page.
Prompts
The Prompts You Can Use
Every prompt answers one question for the model: which pixels do you mean?
Text
A short noun phrase such as “red backpack”. Built into SAM 3, so no separate text model is needed.
Example (exemplar)
Box one object; SAM 3 finds the look-alikes. Add a negative example to exclude near-misses.
Points
Positive clicks on what you want, negative clicks on what to leave out.
Boxes
A rough rectangle; SAM 3 finds the exact shape inside it.
Masks
A rough mask, for example from another tool or a brush stroke, that SAM 3 cleans up.
Combined
Text first, then a click to correct; or a box first, then clicks for edges.
Wording tips and examples: SAM 3 prompts guide · prompt library
Images
Segmenting an Image, Step by Step
The typical workflow in any SAM 3 tool, from a click to a file you can use.
- 1Load the imageHigher resolution and good lighting give cleaner edges.
- 2PromptClick the object, draw a box, or type what you want.
- 3Choose a maskA single click can be ambiguous (the label, the mug, or the mug plus its handle?), so tools often show a few candidates with scores.
- 4RefineAdd positive or negative clicks until it is right.
- 5Export or applySave the mask or cut-out, or use it straight away: replace the background, blur it, or recolour just the object.
Several objects? Prompt each one, or use a text prompt to get all matches at once. Guides: image segmentation · background removal · select specific objects
Video
Segmenting a Video
In video, SAM 3 segments the object once and then follows it. You only step in where it goes wrong.
- Prompt one frame. Text, an example or clicks on any frame.
- Propagate. SAM 3’s tracker, built on SAM 2’s memory design, carries each mask forward with a stable ID.
- Correct key frames. If a mask drifts, click on that frame and the fix carries through the frames after it.
- Many objects? SAM 3.1’s Object Multiplex tracks up to 16 objects together in one pass, which is much faster than one at a time.
Full guide: video segmentation. Problems? tracking loses objects · slow video tracking
Outputs
What You Get Back, and How to Export It
For every object, SAM 3 returns a mask, a bounding box and a confidence score, and in video an ID. How you save the mask depends on what you will do with it next.
- PNG with transparency. A ready-made cut-out for design tools, thumbnails and stickers.
- Binary mask. White object on black, for compositing, video editors and ML pipelines.
- COCO RLE. A compact text format used by datasets such as SA-1B and most labelling tools.
- Polygons. Outline points for annotation tools, GIS and vector editors.
- Video. A mask per frame, or a video with an alpha channel, plus IDs for tracking data.
Details: mask formats · how to export masks
Under the hood
How SAM 3 Segmentation Works
You do not need this to use SAM 3, but it explains why it is fast and flexible.
- 1Vision encoderReads the image or frame once and turns it into features that are reused for every prompt.
- 2Prompt understandingText, example boxes and clicks are encoded so the model knows what and where you mean.
- 3Detector with presence checkFinds every object that matches a concept prompt, and first checks whether the concept is in the image at all.
- 4Mask predictionProduces a pixel mask, a box and a confidence score for each object.
- 5Tracker (video)Uses memory of earlier frames to keep each object’s mask and ID over time.
The full picture, with a diagram and benchmarks, is on our SAM 3 page.
Comparison
Segmentation in SAM 1 vs SAM 2 vs SAM 3
What changed for segmentation across the Segment Anything family.
| Aspect | SAM 1 (2023) | SAM 2 (2024) | SAM 3 / 3.1 (2025–26) |
|---|---|---|---|
| Works on | Images | Images and video | Images and video |
| Prompts | Points, boxes, masks | Points, boxes, masks | Text, examples, points, boxes, masks |
| Per prompt you get | One object (up to 3 candidate masks) | One object, tracked | One object, or every match |
| Video tracking | No | Yes, with streaming memory | Yes; much faster for many objects in 3.1 |
| Says “none found” | No | Detects when an object is hidden | Yes, presence check for concepts |
| Licence | Apache 2.0 | Apache 2.0 | SAM License |
More: all comparisons · SAM 3 vs SAM 2 · SAM 3 vs SAM 3.1
Better results
Tips for Cleaner Masks
A strong model still depends on good input. These habits fix most problems.
- Start with a good imageSharp, well lit and high resolution. Motion blur and tiny objects are the hardest cases.
- Use negative clicksIf the mask grabs too much, one click on the extra area usually fixes it.
- Box first for awkward shapesThen add a few clicks to tidy the edges.
- Keep text prompts short“red backpack” beats a full sentence. Add one detail if too much is selected; try another word if nothing is.
- Zoom in on fine detailCheck hair, wires and thin parts, and add a positive click where something is missing.
- In video, fix key framesCorrect the start, hard cuts and occlusions, and let the fix propagate.
More fixes: improve mask quality · empty masks
Use cases
Where SAM 3 Segmentation Is Used
Creators and designers
Background removal, thumbnails, posters, stickers, and effects that follow a subject in Reels or Shorts.
Post-production and VFX
Rotoscoping, matte passes and grading one character or object without touching the rest.
App and web developers
“One-click cut-out”, “auto subject highlight” and background swap features in photo, video and design apps.
Dataset labelling
Pre-label whole scenes by concept, then correct, export and train smaller models.
Industry and science
Crops and weeds from drone footage, parts on a production line, and medical structures after fine-tuning and with expert review.
Privacy
Find and blur faces, people or licence plates across a whole video.
More on our use cases page.
Limits
What to Watch Out For
Works well
- Everyday objects in clear photos and video.
- Many objects at once from one text prompt.
- Quick interactive fixes with a click.
- New domains without training, with fine-tuning available for specialist ones.
Needs care
- Motion blur, low resolution and very small objects.
- Crowds of look-alikes, such as a team in identical kits.
- Rare concepts and unusual wording; non-English prompts are less consistent.
- Specialist imagery such as medical scans usually needs fine-tuning and expert review.
- Compute: SAM 3 is a large model designed for GPUs.
Building a product? Always give users an easy way to fix a mask, and show alternatives when the model is unsure. More: limitations.
Questions
Segmentation FAQ
What does segmentation mean in Meta SAM 3?
Segmentation means marking exactly which pixels belong to an object. SAM 3 returns a mask for each object you ask for, plus a box, a confidence score and, in video, an ID that stays with the object from frame to frame.
What is the difference between PVS and PCS?
Promptable Visual Segmentation (PVS) uses clicks, boxes or masks to segment one specific object per prompt. This is what SAM 1 and SAM 2 do. Promptable Concept Segmentation (PCS) uses a short phrase or an example to find every object that matches. SAM 3 does both.
Does SAM 3 do semantic or instance segmentation?
It returns instance masks: one separate mask per object. If you need semantic segmentation (one mask for a whole class, such as all “road”), merge the instance masks for that prompt.
Can SAM 3 segment objects from a text prompt on its own?
Yes. Unlike SAM 1 and SAM 2, SAM 3 understands short text phrases natively, so you do not need a separate text-detection model in front of it. For long or complex instructions, Meta’s SAM 3 Agent pairs it with a multimodal language model.
What mask formats can I export?
That depends on your tool. Common options are a PNG cut-out with transparency, a black-and-white (binary) mask, compressed COCO RLE for datasets, and polygon outlines for annotation and vector tools.
Does SAM 3 segmentation work on video?
Yes. Prompt on one frame and SAM 3 tracks each object through the clip with a stable ID. SAM 3.1, released in March 2026, makes this much faster when many objects are tracked at once.
How can I get cleaner masks?
Use a sharp, well-lit image, add a negative click on any area that does not belong, start with a box for awkward shapes, keep text prompts short and concrete, and in video correct a few key frames rather than every frame.
Keep reading
Sources
- Meta AI blog: Introducing SAM 3 and SAM 3.1
- facebookresearch/sam3 on GitHub
- Hugging Face Transformers: SAM 3 tracker (PVS)
- Kirillov et al., “Segment Anything”, 2023 (ambiguity-aware masks, SA-1B)