Instructions to use google/siglip-base-patch16-224 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/siglip-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/siglip-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 AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("google/siglip-base-patch16-224") model = AutoModelForZeroShotImageClassification.from_pretrained("google/siglip-base-patch16-224", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding ONNX file of this model
Verified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [Yengoyan](https://huggingface.co/Yengoyan), 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)!8d30796
-
Upload tokenizer.json for fast tokenizer support (#4)
Verified signature- Upload tokenizer.json for fast tokenizer support (ac23f83fbd4a7f2f4ddcf3b5c17c09d2a766dd26) Co-authored-by: Ita Zaporozhets <itazap@users.noreply.huggingface.co>7fd15f0
-
Fix code highlighting (#2)
Verified signature- Fix code highlighting (af8dfa035fc6acd71e008893d05915bead67ca13) Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>cc3289c -
Update README.md
Verified signatured904981
-
Update README.md
aa7f89d -
Update README.md
e23d6e3 -
Create README.md
13f18a4 -
Upload processor
78005bd
-
Upload processor
314c6a4 -
Update tokenizer_config.json
5b22327 -
Upload processor
559dc4d -
Upload processor
903ea66 -
Upload processor
474f7ef
-
Update tokenizer_config.json
ed3255e -
Update tokenizer_config.json
c53778c -
Update tokenizer_config.json
fff6f8a -
Upload processor
264b4cf -
Update tokenizer_config.json
7fbfd09 -
Update tokenizer_config.json
5cf2d5c -
Update tokenizer_config.json
18d916c -
Update tokenizer_config.json
88ce397 -
Update tokenizer_config.json
93dde63
-
Upload processor
ab79c11 -
Upload model
5b1f0cc
-
Upload processor
d0ffe3f -
Upload processor
489492d -
Upload model
7c23f8b
-
Update tokenizer_config.json
f720076 -
Update tokenizer_config.json
1aa91a4
-
Upload processor
ca0894e -
Upload model
2c0865f
-
Upload model
ad224e6 -
initial commit
9c38870