Instructions to use facebook/sam2-hiera-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam2-hiera-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam2-hiera-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("facebook/sam2-hiera-small") model = AutoModel.from_pretrained("facebook/sam2-hiera-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download sam2_hiera_small.pt from facebook/sam2-hiera-small: direct link, hf CLI and curl.
- Browser
- Download file 184 MB
-
https://huggingface.co/facebook/sam2-hiera-small/resolve/main/sam2_hiera_small.pt
- Command line
-
hf download hf://facebook/sam2-hiera-small/sam2_hiera_small.pt
-
curl -L -o sam2_hiera_small.pt https://huggingface.co/facebook/sam2-hiera-small/resolve/main/sam2_hiera_small.pt
184 MB
- Xet hash:
- 91da76c73cd951a1d63d8e2b1d7ec7d96313887d367f5e7cafd1b800272594f7
- Size of remote file:
- 184 MB
- SHA256:
- 95949964d4e548409021d47b22712d5f1abf2564cc0c3c765ba599a24ac7dce3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.