Instructions to use aradootle/sam-vit-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aradootle/sam-vit-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="aradootle/sam-vit-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("aradootle/sam-vit-base") model = AutoModelForMaskGeneration.from_pretrained("aradootle/sam-vit-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
stuff
73cb701 -
moved model to see if itll fix the bug
1810c2f -
fixed tabs and spaces
7f7a4fc -
fixed indentation
f49d008 -
add custom handler
Ubuntuc2fbc3b -
Duplicate from facebook/sam-vit-base
Co-authored-by: Younes Belkada <ybelkada@users.noreply.huggingface.co>5d0eb5a