Instructions to use pulsejet/siglip-base-patch16-256-multilingual-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pulsejet/siglip-base-patch16-256-multilingual-onnx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="pulsejet/siglip-base-patch16-256-multilingual-onnx") 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("pulsejet/siglip-base-patch16-256-multilingual-onnx") model = AutoModelForZeroShotImageClassification.from_pretrained("pulsejet/siglip-base-patch16-256-multilingual-onnx", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from pulsejet/siglip-base-patch16-256-multilingual-onnx: direct link, hf CLI and curl.
- Browser
- Download file 621 Bytes
-
https://huggingface.co/pulsejet/siglip-base-patch16-256-multilingual-onnx/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://pulsejet/siglip-base-patch16-256-multilingual-onnx/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/pulsejet/siglip-base-patch16-256-multilingual-onnx/resolve/main/preprocessor_config.json
621 Bytes
| { | |
| "_valid_processor_keys": [ | |
| "images", | |
| "do_resize", | |
| "size", | |
| "resample", | |
| "do_rescale", | |
| "rescale_factor", | |
| "do_normalize", | |
| "image_mean", | |
| "image_std", | |
| "return_tensors", | |
| "data_format", | |
| "input_data_format" | |
| ], | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "SiglipImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "processor_class": "SiglipProcessor", | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 256, | |
| "width": 256 | |
| } | |
| } | |