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
-
Fix error in example code snippet
Verified signatureLooks like you forgot to load the image from the url in the first example. This PR fixes that.630b7cb
-
Upload README.md with huggingface_hub
Verified signatureb53b807 -
Upload README.md with huggingface_hub (#1)
Verified signature- Upload README.md with huggingface_hub (34bdac24038c6eb7a9df084b1ecc190d81bc0aa1)860e819
-
Update preprocessor_config.json
Verified signaturec7a07b6
-
Upload processor
Verified signature0afa5d0 -
Upload processor
Verified signature283dd4b -
Upload model
Verified signatured975c0c -
initial commit
Verified signature47837f2