facebookresearch/sam2
The repository provides code for running inference with the Meta Segment Anything Model 2 (SAM 2), links for downloading the trained model checkpoints, and example notebooks that show how to use the model. observed · 2026-08-28
Health v2 · maintenance only
61/100
- Activity 84
- Release rhythm 35
- Longevity 54
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 765
- days_rel: n/a
- days_push: 96
- n_releases_24m: 0
Adoption not part of the score
19770 stars · 2535 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Official code for Meta's Segment Anything Model 2 (SAM 2), a foundation model for promptable visual segmentation in images and videos. It includes inference code, downloadable model checkpoints, training code, and example notebooks.
Use cases
- segment objects in images with point or box prompts
- track and segment objects across video frames in real time
- download pretrained SAM 2 checkpoints for segmentation tasks
- run video object segmentation with multi-object tracking
- fine-tune or train SAM 2 on custom segmentation data
- extract object masks from images and videos for downstream pipelines
When to choose
- you need state-of-the-art promptable segmentation for images or videos
- you want a foundation segmentation model to build annotation or labeling tools on
- you need real-time video object segmentation with streaming memory
- you want pretrained checkpoints plus training code from the model authors
When to avoid
- you need lightweight segmentation on CPU-only hardware
- you need semantic or instance segmentation with fixed class labels rather than promptable masks
- you need a turnkey application rather than a model library requiring PyTorch and GPUs
Facets
library · maturity active
machine-learning computer-vision image-processing video-processing deep-learning computer-vision machine-learning image-processing artificial-intelligence python cross-platform segment-anything image-segmentation video-segmentation promptable-segmentation foundation-model object-tracking meta-ai inference video gpu
1 source
- readme: https://github.com/facebookresearch/sam2 · fetched 2026-08-28 · 55a0c3cb6848
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| facebookresearch/sam2 | main | 61 |
For agents
markdown · JSON · MCP: product_card(name="facebookresearch/sam2")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem