Instructions to use facebook/sam2-hiera-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam2-hiera-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam2-hiera-tiny")# Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("facebook/sam2-hiera-tiny") model = AutoModel.from_pretrained("facebook/sam2-hiera-tiny") - Notebooks
- Google Colab
- Kaggle
File size: 95 Bytes
7c218be | 1 2 3 4 5 6 | {
"point_pad_value": -10,
"processor_class": "Sam2VideoProcessor",
"target_size": 1024
}
|