Instructions to use google/siglip2-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/siglip2-base-patch16-224 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="google/siglip2-base-patch16-224") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("google/siglip2-base-patch16-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signaturethe previous provided code has some errors which are fixed now and can be replicated02c35f2
-
Upload README.md with huggingface_hub
Verified signature75de2d5 -
Upload README.md with huggingface_hub (#1)
Verified signature- Upload README.md with huggingface_hub (6f0d392755b053ddb91b3b469fffe56860b980bb)022b6f7
-
Upload config
Verified signatureaa61322
-
Upload processor
Verified signature997aaec -
Upload model
Verified signaturea7d0427 -
initial commit
Verified signature9a9692a