Instructions to use facebook/sam2-hiera-base-plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam2-hiera-base-plus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam2-hiera-base-plus")# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("facebook/sam2-hiera-base-plus") model = AutoModel.from_pretrained("facebook/sam2-hiera-base-plus") - Notebooks
- Google Colab
- Kaggle
Update model card
#1
by nielsr HF Staff - opened
This PR updates the model card to also include code snippets.
hkhedr changed pull request status to merged