Instructions to use pinecoresystems/sam2.1-hiera-base-plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pinecoresystems/sam2.1-hiera-base-plus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="pinecoresystems/sam2.1-hiera-base-plus")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("pinecoresystems/sam2.1-hiera-base-plus") model = AutoModel.from_pretrained("pinecoresystems/sam2.1-hiera-base-plus", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from pinecoresystems/sam2.1-hiera-base-plus: direct link, hf CLI and curl.
- Browser
- Download file 95 Bytes
-
https://huggingface.co/pinecoresystems/sam2.1-hiera-base-plus/resolve/main/processor_config.json
- Command line
-
hf download hf://pinecoresystems/sam2.1-hiera-base-plus/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/pinecoresystems/sam2.1-hiera-base-plus/resolve/main/processor_config.json
95 Bytes
| { | |
| "point_pad_value": -10, | |
| "processor_class": "Sam2VideoProcessor", | |
| "target_size": 1024 | |
| } | |