Instructions to use google/siglip-base-patch16-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/siglip-base-patch16-512 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="google/siglip-base-patch16-512") 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 AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("google/siglip-base-patch16-512") model = AutoModelForZeroShotImageClassification.from_pretrained("google/siglip-base-patch16-512", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding ONNX file of this model
ShaneVerified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [Vykyan](https://huggingface.co/Vykyan), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!42499c7
-
upload fast tokenizer.json (#2)
Verified signature- upload fast tokenizer.json (9e52c81f93b95625a56f2ab72d9093ebc38861ca) Co-authored-by: Ita Zaporozhets <itazap@users.noreply.huggingface.co>753a949
-
Update README.md (#1)
Verified signature- Update README.md (3c210c80f359d050aa863d231231158c16de3a03) Co-authored-by: not-lain <not-lain@users.noreply.huggingface.co>8d7828f -
Update README.md
Verified signaturef2b9b13
-
Update README.md
039f015 -
Create README.md
101d1d9 -
Upload processor
0ffb506 -
Upload model
b262c76 -
initial commit
764a7e2