Model Details
Full Model IDfacebook/sam2.1-hiera-small
Pipeline / Taskmask-generation
Librarytransformers
Downloads (all-time)11.1K
Likes15
Last Modified8/15/2025
Author / Orgfacebook
PrivateNo — public
⚡ Quick Usage (Python)
Using the 🤗 Transformers library. Install with pip install transformers
from transformers import pipeline
# Load the model
pipe = pipeline("mask-generation", model="facebook/sam2.1-hiera-small")
# Run inference
result = pipe("Your input here")
print(result)🏷️ Tags
transformerssafetensorssam2_videofeature-extractionmask-generationarxiv:2408.00714license:apache-2.0endpoints_compatibleregion:us
More mask-generation Models
See all →🚀 Use This Model
Access model files, inference API, and full documentation on Hugging Face.
Open on Hugging Face →Browse Model Files ↗← Browse All Models🤖 Task: mask-generation
This model is designed for the mask-generation task. Explore more models for this use case.
All mask-generation Models →📊 Popularity
⬇ Downloads11.1K
❤️ Community Likes15
🛠️ Requirements
- →Install: pip install transformers
- →Python 3.8+ recommended for Transformers.
- →GPU (CUDA) speeds up inference significantly.
- →Use model.half() for fp16 on limited VRAM.