Model · Meta SAM 3.1 · Object Multiplex
Meta SAM 3.1: What Changed and How to Get Started SAM 3.1 keeps everything SAM 3 does and makes multi-object video tracking much faster. Here’s what’s new, what stayed the same, where it runs today, and how to start or upgrade.
At a glance
SAM 3.1 at a Glance
An update to SAM 3 released by Meta on 27 March 2026, focused on tracking many objects in video.
- Drop-in update: Meta calls SAM 3.1 a drop-in replacement for SAM 3.
- Where the gain is: video with several objects. Images are essentially unchanged.
- Weights: gated
facebook/sam3.1on Hugging Face, under the SAM License. - Code: the same
facebookresearch/sam3repository, latest version. - Try it: Meta says the updated model is on the Segment Anything Playground.
Changes
What Changed, and What Didn’t
One new tracker design plus engine optimisations. Prompts, outputs and requirements stay the same.
Changed
- Object Multiplex tracker: objects are grouped and tracked together with shared memory, instead of one tracker run per object.
- New checkpoints:
sam3.1_multiplex.ptinfacebook/sam3.1(needs the latest sam3 code). - Faster engine: fewer CPU–GPU syncs, better
torch.compilefusion, batched post-processing and vision encoding. - Video accuracy: level or slightly better (e.g. SA-V J&F 84.4 → 85.1).
- New builders for the multiplex video predictor in the sam3 code.
Stayed the same
- Text, example-box, click and box prompts.
- Outputs: masks, boxes, scores, object IDs.
- Session-style video requests (start, add prompt, propagate).
- Requirements: Python 3.12+, PyTorch 2.7+, CUDA 12.6+.
- Image segmentation quality, model size class and licence.
Every number side by side: SAM 3 vs SAM 3.1. Speed figures are Meta’s, on data-centre GPUs; the paper’s own controlled comparison reports a smaller 5.2× at 128 objects and a few percent overhead for a single object, so measure on your hardware.
How it works
Object Multiplex in Plain Words
SAM 3 ran its tracker once for every object. SAM 3.1 fills buckets of up to 16 objects and runs the tracker once per bucket.
- Buckets: the public checkpoint holds 16 objects per bucket; more objects open more buckets.
- Shared memory: objects in a bucket share one memory, which is where the saving comes from.
- One or two objects: little to gain; the benefit grows with crowd size.
- Same detector: what gets found by a prompt doesn’t change, only how it’s tracked.
Compatibility
Where SAM 3.1 Works Today
Support differs between images and multiplex video. Check every tool in your pipeline.
| Tool | Images | Multiplex video |
|---|---|---|
| sam3 repo (latest) | Yes | Yes |
| Ultralytics | Yes, 8.4.148+ | Not yet (use sam3.pt) |
| ComfyUI | Native | Native |
| Transformers | Community conversions only | Port in progress |
| Older sam3 code | Can’t load 3.1 | Update first |
| Hosted APIs | Provider-specific; check the model name | |
Get started
Get Started With SAM 3.1
Pick the path that matches you.
First time with SAM? Start with the beginner’s guide.
Quick start
SAM 3.1 Quick Start (Fresh Install)
Access first, then code, checkpoint and a first video run.
terminal
# fresh install (Python 3.12+, PyTorch 2.7+, CUDA 12.6+)
git clone https://github.com/facebookresearch/sam3.git
cd sam3 && pip install -e .
# after your access to facebook/sam3.1 is approved on Hugging Face
hf auth login
hf download facebook/sam3.1 --local-dir checkpoints/sam3.1
sha256sum checkpoints/sam3.1/sam3.1_multiplex.pt
# 0567debeec80ba4ac6369540c6c248025283cb3ff2b92827509e57e2b3541cb6first_sam31_video.py
# first SAM 3.1 video run: track every "player" in a clip
from sam3.model_builder import build_sam3_predictor
predictor = build_sam3_predictor(version="sam3.1") # SAM 3.1 multiplex video predictor
sid = predictor.handle_request(dict(type="start_session", resource_path="match.mp4"))["session_id"]
predictor.handle_request(dict(type="add_prompt", session_id=sid, frame_index=0, text="player"))
for out in predictor.handle_stream_request(dict(type="propagate_in_video", session_id=sid)):
print(out["frame_index"], list(out["outputs"].keys())) # check output names for your commit
breakimages via Ultralytics
# images with SAM 3.1 through Ultralytics (8.4.148+)
from ultralytics import SAM
from ultralytics.models.sam import SAM3SemanticPredictor
SAM("sam3.1_multiplex.pt")("street.jpg", points=[500, 375], labels=[1]) # click
p = SAM3SemanticPredictor(overrides=dict(model="sam3.1_multiplex.pt", task="segment", mode="predict"))
p.set_image("street.jpg")
results = p(text=["bus"]) # textBuilder and output names follow the current sam3 code; confirm them in Meta’s sam3.1_video_predictor_example.ipynb for your commit. Need access help? Hugging Face access · Full setup: install SAM 3 · Full video script: video segmentation with Python
Upgrade
Upgrade From SAM 3 in Five Steps
For most pipelines: a code pull and a checkpoint swap. Prompts and requests don’t change.
- 1Request accessto
facebook/sam3.1; it’s gated separately fromfacebook/sam3. - 2Update the code:
git pullin your sam3 folder, thenpip install -e . - 3Download and verify
sam3.1_multiplex.pt(3,502,755,717 bytes). - 4Switch the builderto the SAM 3.1 video predictor.
- 5Validatespeed, memory and masks against SAM 3 on your own clips; keep sam3.pt to roll back.
Before/after code, a validation script and rollback: full upgrade guide
Decision
Should You Switch to SAM 3.1?
| Your work | Recommendation |
|---|---|
| Video with many objects (sports, traffic, crowds) | Switch now |
| Video with one or two objects | Switch at your next update; small gain |
| Images only | No rush; results are about the same |
| Built on Transformers | Wait for an official release, or move video to the sam3 repo |
| Ultralytics video pipeline | Keep sam3.pt for video for now |
Costs and hosted prices: pricing · Other versions: SAM 3 · all models
Questions
SAM 3.1 FAQ
What is Meta SAM 3.1?
SAM 3.1 is an update to Meta’s Segment Anything Model 3, released on 27 March 2026. It adds Object Multiplex, which tracks up to 16 objects together in one pass, making multi-object video tracking much faster.
Is SAM 3.1 a new model or an update?
An update. Meta describes it as a drop-in replacement for SAM 3: the same kind of model, prompts and outputs, with a new multi-object tracker and new checkpoints.
Is SAM 3.1 better for images?
Not meaningfully. The release targets video tracking speed. Image results are about the same, so image-only users don’t need to rush.
Can I use SAM 3.1 in Hugging Face Transformers?
Not officially yet. Meta’s facebook/sam3.1 page hosts checkpoints only and points to the sam3 GitHub code. A Transformers port is in progress, and some community conversions cover images only.
Does Ultralytics support SAM 3.1?
For images, yes, from version 8.4.148. Object Multiplex video tracking isn’t ported yet; Ultralytics recommends sam3.pt for video.
Do I need a new GPU for SAM 3.1?
No. Requirements match SAM 3 (Python 3.12+, PyTorch 2.7+, CUDA 12.6+), and faster tracking means the same GPU handles more video.
Is SAM 3.1 free?
The weights are free to download after accepting the SAM License on Hugging Face. Hosted APIs charge their own prices.