Zero-Shot Image Classification
Transformers
Safetensors
siglip2_vision_model
feature-extraction
vision
Instructions to use ostris/siglip2-base-patch16-style-naflex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ostris/siglip2-base-patch16-style-naflex with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="ostris/siglip2-base-patch16-style-naflex") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ostris/siglip2-base-patch16-style-naflex") model = AutoModel.from_pretrained("ostris/siglip2-base-patch16-style-naflex", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
b8cf15e | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:e7756bd0dd6d4dd2873588f2bfeda29c3c42fc9cdba81d26bb179851cfdebc2e
size 34356427
|