Meta SAM 3 Playground

Comparison · SAM 3 / 3.1 vs SAM 2 / 2.1

SAM 3 vs SAM 2: Prompting, Workflows and Practical Trade-offs SAM 2 segments what you point at. SAM 3 finds everything you describe. Here’s how that changes your prompts, your pipeline and your costs.

click vs concept
Animation: SAM 2 click versus SAM 3 text promptThe same park with three dogs. With SAM 2, a click on one dog masks only that dog. With SAM 3, the text prompt “dog” masks all three dogs, each with its own ID. SAM 2 · click › 1 dog id 1id 2id 3 SAM 3 · “dog” › 3 dogs
Illustration: SAM 2 masks the dog you click; SAM 3 masks every dog.

Short answer

The Verdict

It depends on prompts

Choose SAM 3 (ideally SAM 3.1) when you want to describe what to find, need every instance, or want the best masks; it beats SAM 2 even on clicks. Choose SAM 2.1 when clicks are enough and you need small, fast models (down to 38.9M parameters), edge hardware, ungated downloads or the Apache 2.0 licence. Many teams use both.

+ textSAM 3 adds concept prompts
84.4 vs 79.5SA-V J&F, SAM 3 vs 2.1 L
+25.5%SAM 3 on MOSEv2
848M vs 39–224Mparameters
91 FPSSAM 2.1 Tiny on A100
Apache vs SAMlicences

Side by side

SAM 3 vs SAM 2 at a Glance

Green marks the stronger option for each row; trade-offs depend on your project.

SAM 2 / 2.1SAM 3 / 3.1
Released29 Jul 2024 (2.1: 29 Sep 2024)19 Nov 2025 (3.1: 27 Mar 2026)
Core taskPromptable visual segmentation (PVS)PVS + Promptable Concept Segmentation (PCS)
PromptsClicks, boxes, masksClicks, boxes, masks + text + example boxes
Finds every instanceNo, one object per promptYes, every match with IDs
BackboneHiera image encoderMeta Perception Encoder + DETR-style detector
Video trackingStreaming memoryBuilds on SAM 2’s memory; 3.1 adds Object Multiplex
Sizes4: 38.9M–224.4M1: ~848M
Speed (vendor figures)39.5–91.2 FPS on A100~30 ms/image (H200); near real-time ~5 objects; 3.1 ~32 FPS (H100)
SA-V test J&F79.5 (2.1 Large)84.4 (3.1: 85.1)
RequirementsPython 3.10+, PyTorch 2.5.1+Python 3.12+, PyTorch 2.7+, CUDA 12.6+
Weights accessDirect downloadGated on Hugging Face (request access)
Training codeYesYes, plus fine-tuning code
LicenceApache 2.0SAM License (commercial use with restrictions)
Transformers / UltralyticsYes / YesYes (SAM 3) / Yes

Model guides: SAM 2 · SAM 3 · SAM 3.1

Prompting

How Prompting Differs

SAM 3 keeps every SAM 2 prompt and adds concept prompts. The bigger change is what one prompt returns.

supported prompts
Animated comparison of supported prompt typesTwo columns of prompt types. SAM 2 supports clicks, boxes and masks. SAM 3 supports all of those plus text phrases, example boxes and negative examples. SAM 2 / 2.1SAM 3 ✓ clicks✓ boxes✓ masks✗ text phrase✗ example boxes✗ negative examples✓ clicks✓ boxes✓ masks✓ text phrase✓ example boxes✓ negative examples SAM 3 keeps every SAM 2 prompt and adds concepts
Illustration of prompt support in each model.

SAM 2: “this one”

  • Positive and negative clicks, a box, or a mask on one object.
  • One object per prompt; for ten objects you prompt ten times.
  • Ambiguity handling: a single click can return several candidate masks (part vs whole).

SAM 3: “every X” or “this one”

  • Text: a short noun phrase like “yellow taxi” returns every match.
  • Example boxes: positive and negative boxes for look-alikes or things hard to name.
  • Clicks still work for one object, with better masks than SAM 2.
  • Limit: short phrases only; complex requests need SAM 3 Agent.

More: SAM 3 prompts guide

Image workflows

Image Workflows Compared

With SAM 2

  • Interactive cut-outs: click, refine, export. Fast and familiar.
  • Label every object: run the automatic mask generator, then name masks yourself, or add a separate detector.
  • Text-driven: chain a text detector (e.g. Grounding DINO) → boxes → SAM 2. Two models to run and tune.

With SAM 3

  • Interactive cut-outs: same click flow, sharper masks.
  • Label every object: type the class name; get masks, boxes and scores for each instance.
  • Text-driven: built in. One model, one call; add negative example boxes to clean up.

Guide: SAM 3 image segmentation

Video workflows

Video Workflows Compared

Both track through video with memory. The difference is how objects get into the tracker.

click each vs one phrase
Animation comparing video workflowsTop row, SAM 2: you click each of three players on the first frame, one click per object ID, then propagate. Bottom row, SAM 3: one text prompt, “player”, finds all three on the first frame, then propagates; new players entering later also get IDs. SAM 2SAM 3 click each objectone text prompt 3 clicks propagate text › “player” new player → new ID SAM 2 can add objects later too, but you must click each one
Illustration of the two video workflows.
  • SAM 2: click or box each object on a frame, then propagate. New objects entering later need new clicks.
  • SAM 3: one text or example prompt finds every match; its detector also picks up new matches as they appear.
  • Crowds: SAM 3’s cost grows per object; SAM 3.1 tracks up to 16 per pass. SAM 2.1 Tiny stays very fast for a few objects.
  • Corrections: both let you click on a frame where a mask drifts and re-propagate.

In code

The Same Task in Code

Tracking players through a clip. SAM 2 needs one prompt per player; SAM 3 needs one phrase.

SAM 2.1

predictor = build_sam2_video_predictor(cfg, ckpt)
state = predictor.init_state(video_path="match_frames/")

# one call per object you want to follow
predictor.add_new_points_or_box(state, frame_idx=0, obj_id=1,
    points=[[210, 350]], labels=[1])
predictor.add_new_points_or_box(state, frame_idx=0, obj_id=2,
    points=[[480, 330]], labels=[1])

for frame, ids, masks in predictor.propagate_in_video(state):
    ...

SAM 3 / 3.1

predictor = build_sam3_video_predictor()
sid = predictor.handle_request(request=dict(
    type="start_session", resource_path="match.mp4"))["session_id"]

# one call finds every player, each with an ID
out = predictor.handle_request(request=dict(
    type="add_prompt", session_id=sid,
    frame_index=0, text="player"))

Simplified from the official sam2 and sam3 repositories; check their notebooks for full setup.

Accuracy

Accuracy: SAM 3 Wins, Even at SAM 2’s Own Game

SAM 3 isn’t only better at concepts. It also beats SAM 2 on click-based tasks.

SAM 2.1 Large vs SAM 3
Animated bar chart of SAM 2.1 vs SAM 3 accuracyOn SA-V test, SAM 2.1 Large scores 79.5 J&F and SAM 3 scores 84.4. On MOSEv2, SAM 3 scores 60.1, about 25.5% above SAM 2.1, which is roughly 47.9. SA-V test J&FSAM 2.1 L79.5SAM 384.4MOSEv2 J&FSAM 2.1 L≈47.9SAM 360.1 higher is better · ≈ derived from the reported +25.5%
Scores from Meta’s releases; MOSEv2 SAM 2.1 value derived from the reported gap.
  • Video object segmentation: SA-V test J&F 79.5 (SAM 2.1 Large) → 84.4 (SAM 3) → 85.1 (SAM 3.1).
  • Hard, crowded video: 60.1 J&F on MOSEv2, about 25.5% above SAM 2.1.
  • Interactive images: better average mIoU than SAM 1 and SAM 2 with 1 or 5 clicks on Meta’s 37-dataset benchmark.
  • Concepts: SAM 2 can’t do concept segmentation at all; SAM 3 roughly doubles earlier systems on SA-Co.
  • Your data may differ: independent medical studies found mixed results, so test on your own images.

Size and speed

Model Size, Speed and Hardware

This is where SAM 2.1 still shines.

parameters and speed
Animated bar chart of model sizesParameter counts: SAM 2.1 Tiny 38.9 million at 91.2 FPS, Small 46 million at 84.8 FPS, Base Plus 80.8 million at 64.1 FPS, Large 224.4 million at 39.5 FPS, all on an A100. SAM 3 and 3.1 come in one size, about 848 million parameters. SAM 2.1 Tiny38.9M91.2 FPSSAM 2.1 Small46M84.8 FPSSAM 2.1 Base+80.8M64.1 FPSSAM 2.1 Large224.4M39.5 FPSSAM 3 / 3.1848M1 size parameters · SAM 2.1 FPS from Meta’s README (A100)
SAM 2.1 offers four sizes; SAM 3 one large model.
  • SAM 2.1 sizes: Tiny 38.9M (91.2 FPS), Small 46M (84.8), Base+ 80.8M (64.1), Large 224.4M (39.5), on an A100.
  • SAM 3: one ~848M model, about 30 ms per image on an H200; video is near real-time for about 5 objects (SAM 3.1: ~32 FPS on an H100 at medium counts).
  • Requirements: SAM 2 needs Python 3.10+ and PyTorch 2.5.1+; SAM 3 needs Python 3.12+, PyTorch 2.7+ and CUDA 12.6+.
  • Edge and mobile: SAM 2.1 Tiny or Small are far easier to fit on small GPUs and devices.

Details: system requirements

Licence and access

Licence and Access

SAM 2 / 2.1

  • Apache 2.0 for checkpoints, demo and training code.
  • Direct download of checkpoints; no access request.
  • Usually the quickest legal review for client and commercial work.

SAM 3 / 3.1

  • SAM License: royalty-free, commercial use allowed.
  • Restrictions: no military, weapons, espionage or sanctioned uses; pass the licence on when sharing.
  • Gated weights: request access on Hugging Face first. Summary: terms (not legal advice).

Practical trade-offs

Practical Trade-offs by Scenario

ScenarioBetter choiceWhy
Auto-label a dataset by class nameSAM 3Text prompt returns every instance with boxes and scores.
Click-to-cut-out in an editorEitherSAM 3 is sharper; SAM 2.1 is lighter and faster to serve.
Real-time tracking on a robot or phoneSAM 2.1 Tiny/SmallSmall models, high FPS, easier deployment.
Sports or traffic with many objectsSAM 3.1Finds all players or vehicles; multiplex keeps it fast.
Rare objects that are hard to nameSAM 3Example boxes find look-alikes.
Strict licence or air-gapped setupSAM 2.1Apache 2.0 and ungated downloads.
Medical or niche imageryTest bothResults vary by domain; fine-tuning often matters more.
Existing SAM 2 pipeline that worksStay, then test SAM 3Migrate when text prompts or accuracy justify the bigger model.

Use both

Combining SAM 3 and SAM 2

You don’t have to choose one. Many pipelines use SAM 3 to find and SAM 2.1 to follow.

find with 3, track with 2.1
Animation of a hybrid SAM 3 plus SAM 2.1 pipelineFour stages light up in order: SAM 3 on a server finds objects from a text prompt on a key frame, the boxes or masks are handed over, a small SAM 2.1 Tiny model tracks them on edge hardware, and SAM 3 re-checks periodically for new objects. SAM 3“forklift”server GPUHand overboxes / maskskey frameSAM 2.1 Ttracksedge deviceRe-checknew objects?every N s a common pattern, not an official Meta pipeline
Illustration of a hybrid pipeline.
  1. 1FindRun SAM 3 on a server with a text prompt on key frames.
  2. 2Hand overPass the boxes or masks to SAM 2.1 as prompts.
  3. 3Track cheaplySAM 2.1 Tiny or Small follows them on edge or low-cost GPUs.
  4. 4Re-checkRun SAM 3 again every few seconds or at scene cuts to catch new objects.

Mind both licences: the SAM License still applies to the SAM 3 part.

Migrating

Migrating From SAM 2 to SAM 3

There’s no drop-in path: SAM 3 is a different model with its own package and API.

  1. 1Decide whyText prompts, every-instance output or accuracy. If none matter, stay on SAM 2.1.
  2. 2Set upPython 3.12+, PyTorch 2.7+, CUDA 12.6+; request access to facebook/sam3.1; install facebookresearch/sam3. See install SAM 3.
  3. 3Port promptsKeep click prompts where you need one object; replace per-object loops with one text or example prompt.
  4. 4Update outputsExpect masks, boxes, scores and IDs per match; map them to your existing formats.
  5. 5BenchmarkCompare masks, speed, GPU memory and cost on your own data before switching.

Questions

SAM 3 vs SAM 2 FAQ

What is the main difference between SAM 3 and SAM 2?

SAM 2 segments and tracks the objects you point at with clicks, boxes or masks. SAM 3 can also find every object matching a short text phrase or example box, such as “dogs”, and track them all, in one model.

Is SAM 3 more accurate than SAM 2?

Yes, including on SAM 2’s own tasks. SAM 3 scores 84.4 J&F on SA-V test against 79.5 for SAM 2.1 Large, is about 25% better on the hard MOSEv2 benchmark, and beats SAM 2 on interactive image segmentation.

Is SAM 2 faster or smaller than SAM 3?

Yes. SAM 2.1 comes in four sizes from 38.9M to 224.4M parameters, running at about 39 to 91 FPS on an A100. SAM 3 is a single 848M-parameter model that needs a stronger GPU.

Can SAM 2 use text prompts?

No. SAM 2 only accepts points, boxes and masks. For text you need SAM 3, or a separate text detector such as Grounding DINO feeding boxes into SAM 2.

Which has the better licence for commercial use?

SAM 2 and 2.1 checkpoints and code use Apache 2.0, which is simpler for most legal reviews. SAM 3 uses the SAM License: commercial use is allowed, but with use restrictions and pass-through terms.

Should I migrate from SAM 2 to SAM 3?

Migrate if you need text or example prompts, want to find every instance automatically, or want the best accuracy. Stay on SAM 2.1 if clicks are enough and you need small models, edge devices or Apache 2.0.

Can I use SAM 3 and SAM 2 together?

Yes. A common pattern is to use SAM 3 on a server to find objects from a text prompt, then hand the boxes or masks to a small SAM 2.1 model to track them on cheaper or edge hardware.

Keep reading