Skip to main content

SAM 2

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.

View on GitHub Official site
Vision Multimodal Apache-2.0 Medium setup 19,572 stars

Overview

Description

Automatically identify and isolate any object in images and videos with a single click — no manual masking or custom training needed. SAM 2 powers faster content moderation, visual search, video editing, and AR workflows. The bottom line: turn hours of manual pixel-level editing into seconds of automated segmentation.

Technical scorecard

License

Apache-2.0

Commercial use

Yes

OpenAI-compatible API

No

REST API

No

Fine-tuning support

Yes

Quantization support

No

Docker available

Yes

GUI / no-code available

Yes

Telemetry

Unknown

Offline after setup

Yes

Data & Privacy

Does it send data online?

After setup, this listing is marked as usable offline. Confirm network behavior against the upstream project before regulated deployment.

Does it store history?

Not verified in this directory yet. Review the upstream docs for persistence, logs, and workspace storage.

License checks?

Commercial use is marked as allowed or likely allowed by the listed license.

Telemetry?

Unknown

Last verified: Jul 22, 2026. Maintainer verification should be treated as directory guidance, not legal advice.

🛡️

Deploying SAM 2 in production?

Stop silent telemetry leaks before they trigger an unintended data leak. Get our Airgap Certainty Blueprint for SAM 2.

Request Privacy and Telemetry Audit

Setup & Installation

Medium

A developer can usually get this running with standard docs.

# Start with the official project repository
# https://github.com/facebookresearch/sam2

Hardware Requirements

Hardware tagsGPU (NVIDIA)
LanguagesJupyter Notebook

Works Well With