Instructions to use google/siglip2-base-patch16-naflex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/siglip2-base-patch16-naflex 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-naflex") 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/siglip2-base-patch16-naflex") model = AutoModelForZeroShotImageClassification.from_pretrained("google/siglip2-base-patch16-naflex", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload README.md with huggingface_hub
Verified signature34bdac2 -
Update preprocessor_config.json
Verified signaturec7a07b6
-
Upload processor
Verified signature0afa5d0 -
Upload processor
Verified signature283dd4b -
Upload model
Verified signatured975c0c -
initial commit
Verified signature47837f2