Zero-Shot Image Classification
Transformers
Safetensors
tipsv2
feature-extraction
vision
image-text
contrastive-learning
zero-shot
custom_code
Instructions to use google/tipsv2-so400m14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/tipsv2-so400m14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="google/tipsv2-so400m14", trust_remote_code=True) 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, AutoModel processor = AutoProcessor.from_pretrained("google/tipsv2-so400m14", trust_remote_code=True) model = AutoModel.from_pretrained("google/tipsv2-so400m14", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Use relative imports for sibling modules (fixes local loading, save_pretrained, pickling)
9b102a5
-
Support sentencepiece 0.2.2 in text tokenizer
582b2c6
-
Add arXiv tag to link the paper
Verified signature50a30e3 -
Add arXiv paper link to citation
Verified signature4b36066 -
Update files for transformers integration (#1)
- Update files for transformers integration (b160241b29a048a6b1f0328aa515ffb50dabe6d0) - Update configuration_tips.py (b8b7ff50f2072f85ea1b3cd752cd01000b737ac3) Co-authored-by: guarin <guarin@users.noreply.huggingface.co>e448549
-
Fix broken image URL and add missing .cpu() in code snippets
Verified signature44ff952 -
Remove zero-shot segmentation snippet, link to GitHub for advanced use cases
Gabriele6b864bd
-
PCA visualization: add whitening and sigmoid
Gabriele190b924 -
Add navigation table linking all variants and DPT heads
Gabriele54de1d9
-
Switch to bus image with matching classes
Gabriele3df09f9 -
Improve code examples: better classes, descriptive comments
Gabriele828f85a -
Use cat photo, add print statements to code examples
Gabriele4407365 -
Fix meta device crash: use pure Python for drop_path_rate
Gabriele05bf02c -
Fix zero-shot segmentation section, use public example image
Gabriele2bad776
-
Update README
Gabriele3d0bb08 -
Align image_encoder.py drop_path_rate computation with upstream
Gabriele99e5c3a -
Upload README.md with huggingface_hub
Verified signaturea850c10
-
Upload model.safetensors with huggingface_hub
Verified signature3d18392 -
Upload README.md with huggingface_hub
Verified signature7b64de5 -
Upload config.json with huggingface_hub
Verified signature3604628 -
Upload tokenizer.model with huggingface_hub
Verified signature54a858f -
Upload text_encoder.py with huggingface_hub
Verified signature1eed93f -
Upload image_encoder.py with huggingface_hub
Verified signaturebeee260 -
Upload modeling_tips.py with huggingface_hub
Verified signature3fef103 -
Upload configuration_tips.py with huggingface_hub
Verified signature96352c1 -
initial commit
Verified signatured94c78b