Meta SAM 3 Playground

Guides · SAM 3 & SAM 3.1

Meta SAM Guides Step-by-step guides for every stage: get set up, write prompts that find the right objects, clean up masks, and export them to the tools you use.

guide map
Animated map of the Meta SAM guidesA dotted route connects six stops that light up in turn: install, access, prompt, refine, export and upgrade to 3.1, with a marker travelling along the route. 1install2access3prompt4refine5export63.1 from first install to production-ready masks
Illustration: the route from install to export.

Library

All Meta SAM Guides

Filter by goal or search by keyword, e.g. “ComfyUI”, “RLE” or “token”.

Start hereBeginner
How to use Meta SAM

No-code walkthrough of the playground, prompts and downloads.

Read guide →
Set upBeginner
System requirements

GPU, CUDA, Python and disk you need before installing SAM 3 or 3.1.

Read guide →
Set upBeginner
Hugging Face access

Request the gated checkpoints, create a token and log in.

Read guide →
Set upBeginner
Install SAM 3

Set up Python, PyTorch and the sam3 package, then run a first test.

Read guide →
Set upBeginner
Download Meta SAM

Every official checkpoint, its size, access rules and checksums.

Read guide →
Prompt & refineBeginner
SAM 3 prompts

Write text, point, box and example prompts that find the right objects.

Read guide →
Prompt & refineIntermediate
Select specific objects

Pick one object among many with clicks, boxes and negative examples.

Read guide →
Prompt & refineIntermediate
Improve mask quality

Fix rough edges, holes and leaks with refinement and better inputs.

Read guide →
Export & useBeginner
Background removal

Cut out subjects into transparent PNGs for design and e-commerce.

Read guide →
Export & useIntermediate
Export masks

Save masks as PNG, RLE, polygons or YOLO labels for other tools.

Read guide →
Tools & upgradesIntermediate
ComfyUI setup

Run SAM 3.1 in node-based ComfyUI workflows.

Read guide →
Tools & upgradesIntermediate
Upgrade to SAM 3.1

Pull the latest code, swap the checkpoint and check results.

Read guide →
DevelopersBeginner
Python tutorial: first mask

Minimal working example from install to mask.png.

Read guide →
DevelopersIntermediate
Video segmentation with Python

End-to-end tracking script with MP4 and CSV output.

Read guide →
DevelopersIntermediate
SAM API guide

Hosted APIs versus local Python interfaces.

Read guide →
DevelopersIntermediate
Mask export formats

PNG, COCO RLE, polygons, YOLO-seg and video formats explained.

Read guide →
DevelopersAdvanced
Fine-tune on a custom dataset

Supported setups, dataset preparation and evaluation.

Read guide →

No guides match. Try another word, or see the FAQ.

Learning paths

Learning Paths by Goal

Not sure where to begin? Follow the path that matches what you want to do.

three paths
Animated learning pathsThree lanes fill from left to right: a creator path from the playground to prompts to cut-outs, a developer path from install to Python to API to export, and a researcher path from video to fine-tuning to evaluation. Creatorplayground → prompts → cut-outsDeveloperinstall → Python → API → exportResearchervideo → fine-tune → evaluate pick the lane that matches your goal
Illustration of the three learning paths.

Developer

Run SAM 3 in your own code and apps.

  1. System requirements → access → install
  2. Python tutorial
  3. API guide
  4. Export masks

Researcher / ML

Video, datasets and custom models.

  1. Video with Python
  2. Upgrade to SAM 3.1
  3. Mask formats
  4. Fine-tuning

Core workflow

The Workflow Every Guide Builds On

Whatever your goal, good results come from the same short loop.

prompt → check → refine → export
Animated prompt, check, refine, export loopA loop of four stages lights up in turn: prompt, check the mask, refine with clicks or examples, and export. A marker circles the loop, showing that most good results take one or two passes. promptcheckrefineexport 1–2 passes
Illustration of the core SAM workflow.
  1. 1PromptShort noun phrase, click or box. Prompts
  2. 2CheckRight objects? All of them? Clean edges?
  3. 3RefineAdd clicks, negative examples or a tighter phrase. Mask quality
  4. 4ExportPNG, cut-out, RLE or polygons. Export

Troubleshooting

When Something Goes Wrong

Match the symptom to the fix.

triage
Animated troubleshooting triageA symptom on the left branches to five fixes that appear in turn: load errors, gated access errors, empty masks, out-of-memory errors, and video drift or slowness, each pointing to its troubleshooting guide. symptom? error on install / load401 / gatedno masksout of memoryvideo drifts / slow
Illustration of common problems and where to look.

Questions

Guides FAQ

Where should I start with Meta SAM?

If you just want to try it, start with How to use Meta SAM and the playground. If you want to run it yourself, read System requirements, then Hugging Face access, then Install SAM 3.

Do I need to code to use these guides?

No. The prompts, selection, mask quality and background removal guides work in the playground. The developer guides are for Python users.

Do the guides cover SAM 3.1?

Yes. SAM 3.1 uses the same prompts and workflow as SAM 3; the upgrade guide covers moving to the new checkpoint and code.

Which guide helps when masks are wrong?

Start with SAM 3 prompts, then Select specific objects for the wrong object, and Improve mask quality for rough edges. The troubleshooting section covers errors.

How do I get masks into other tools?

Use Background removal for transparent PNGs, Export masks for PNG, RLE, polygons and YOLO labels, and Mask export formats for the technical details.

Keep reading