Instructions to use facebook/sam-vit-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam-vit-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam-vit-base")# Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("facebook/sam-vit-base") model = AutoModelForMaskGeneration.from_pretrained("facebook/sam-vit-base") - Notebooks
- Google Colab
- Kaggle
Add a missing example notebook link
#10 opened 10 months ago
by
s-takahashi-st
Update code snippet
#8 opened about 1 year ago
by
qubvel-hf
Error when testing
1
#7 opened almost 2 years ago
by
fnando1995
Prompt format for SAM training
#6 opened over 2 years ago
by
rariwa
Batching doesn't work with mask-generation task
4
#3 opened over 2 years ago
by
abdullahalrafib