Zero-Shot Image Classification
Transformers
Safetensors
tipsv2
feature-extraction
vision
image-text
contrastive-learning
zero-shot
custom_code
Instructions to use google/tipsv2-b14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/tipsv2-b14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="google/tipsv2-b14", 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-b14", trust_remote_code=True) model = AutoModel.from_pretrained("google/tipsv2-b14", 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)
ed1e4dc
-
Support sentencepiece 0.2.2 in text tokenizer
23cfc93
-
Add arXiv tag to link the paper
Verified signature7bc23eb -
Fix trailing comma in BibTeX citation
Verified signature213a759 -
Add arxiv paper link in citation (#2)
- Add arxiv paper link in citation (beb69c80c9238734b09b9bde8736a72b641eafe8) Co-authored-by: Sahil Dua <sahildua2305@users.noreply.huggingface.co>bf23663 -
Update files for transformers integration (#3)
- Update files for transformers integration (75750a6a38c5e2c1021e7828a80f063fb804525b) - Update configuration_tips.py (0e4a47ad9275abd1f0c929fc377c1adc9e78e912) Co-authored-by: guarin <guarin@users.noreply.huggingface.co>e79d05f
-
Fix broken image URL and add missing .cpu() in code snippets
Verified signature245de45 -
Remove zero-shot segmentation snippet, link to GitHub for advanced use cases
Gabriele8c6c309
-
PCA visualization: add whitening and sigmoid
Gabrieled075dda -
Add navigation table linking all variants and DPT heads
Gabrieled0e7527
-
Switch to bus image with matching classes
Gabriele6dd2600 -
Improve code examples: better classes, descriptive comments
Gabriele670938a -
Use cat photo, add print statements to code examples
Gabriele365a9aa -
Fix meta device crash: use pure Python for drop_path_rate
Gabrielef46d027 -
Fix zero-shot segmentation section, use public example image
Gabriele2cf893a
-
Update README
Gabriele6f6f8e8 -
Align image_encoder.py drop_path_rate computation with upstream
Gabrielebc0c462 -
Upload README.md with huggingface_hub
Verified signature81aef2d
-
Upload model.safetensors with huggingface_hub
Verified signature8b1c40f -
Upload README.md with huggingface_hub
Verified signature9513273 -
Upload config.json with huggingface_hub
Verified signature105fb64 -
Upload tokenizer.model with huggingface_hub
Verified signature09b170f -
Upload text_encoder.py with huggingface_hub
Verified signature7221483 -
Upload image_encoder.py with huggingface_hub
Verified signature08c087d -
Upload modeling_tips.py with huggingface_hub
Verified signature536ed26 -
Upload configuration_tips.py with huggingface_hub
Verified signature51f3948 -
initial commit
Verified signature0f32bfd