Instructions to use CollectionStudio/siglip2-base-patch16-naflex with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CollectionStudio/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="CollectionStudio/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("CollectionStudio/siglip2-base-patch16-naflex") model = AutoModelForZeroShotImageClassification.from_pretrained("CollectionStudio/siglip2-base-patch16-naflex", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
858da8b | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:58a1696e79c9d97937389ed116f552a15c84811d7b8023918b86f4bc5775b1b0
size 34356304
|