Instructions to use Sacbe/ViT_SAM_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sacbe/ViT_SAM_Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Sacbe/ViT_SAM_Classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Sacbe/ViT_SAM_Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download ViT_B16(SAM)__Classification.ipynb from Sacbe/ViT_SAM_Classification: direct link, hf CLI and curl.
- Browser
- Download file 7.65 MB
-
https://huggingface.co/Sacbe/ViT_SAM_Classification/resolve/main/ViT_B16(SAM)__Classification.ipynb
- Command line
-
hf download 'hf://Sacbe/ViT_SAM_Classification/ViT_B16(SAM)__Classification.ipynb'
-
curl -L -o 'ViT_B16(SAM)__Classification.ipynb' 'https://huggingface.co/Sacbe/ViT_SAM_Classification/resolve/main/ViT_B16(SAM)__Classification.ipynb'
7.65 MB