Registry / ai-ml / sam3
library0.1.4pypypiunverified

Implementation of SAM3 (Segment Anything Model 3) from Facebook Research. Version 0.1.4, early release with frequent updates.

pip install sam3
INSTALL
IMPORT
SIG · SAM3
S
sam3
ai-mlpythonv0.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Sam3Predictor
✓ from sam3 import Sam3Predictor
✗ from sam3.predictor import Sam3Predictor
Import path changed from underscore to dot notation in v0.1.3

Initialize SAM3 predictor with model type and checkpoint.

from sam3 import Sam3Predictor import torch predictor = Sam3Predictor( model_type="sam3_huge", checkpoint="sam3_huge.pth", device="cuda" if torch.cuda.is_available() else "cpu" ) print("SAM3 predictor ready")
Debug
Known issues
breakingv0.1.3 changed the predictor import path. Old code using `from sam3.predictor import Sam3Predictor` will break.
fix
Use `from sam3 import Sam3Predictor`.
affects: v0.1.0 to v0.1.2
breakingCheckpoint files are not bundled; must be downloaded separately from GitHub releases. Code may fail silently if checkpoint is missing.
fix
Download checkpoint from https://github.com/facebookresearch/sam3/releases.
affects: all
gotchaDevice fallback: CPU inference is extremely slow. Always use CUDA if available.
fix
Pass `device="cuda"` explicitly or check `torch.cuda.is_available()`.
affects: all
Upgrade
Version history
0.1.4latest on PyPI · released May 26, 2026
Audit
Dependencies
torchrequiredPyTorch backend
pillowrequiredImage handling
numpyrequiredArray operations
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
sam3 — pip install sam3 · libregistry