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
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
"2": {
|
| 12 |
"content": "<unk>",
|
| 13 |
"lstrip": true,
|
| 14 |
-
"normalized":
|
| 15 |
"rstrip": true,
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|
|
|
|
| 11 |
"2": {
|
| 12 |
"content": "<unk>",
|
| 13 |
"lstrip": true,
|
| 14 |
+
"normalized": false,
|
| 15 |
"rstrip": true,
|
| 16 |
"single_word": false,
|
| 17 |
"special": true
|