Instructions to use facebook/sam2.1-hiera-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam2.1-hiera-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam2.1-hiera-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("facebook/sam2.1-hiera-small") model = AutoModel.from_pretrained("facebook/sam2.1-hiera-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add Transformers weights (#1)
Verified signature- Add Transformers weights + update model card (e07df6aa19f5c6545121551bf89957b7663ee715) Co-authored-by: Yoni Gozlan <yonigozlan@users.noreply.huggingface.co>ee5bba1