Zero-Shot Image Classification
Transformers
Safetensors
tipsv2
feature-extraction
vision
image-text
contrastive-learning
zero-shot
custom_code
Instructions to use google/tipsv2-g14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use google/tipsv2-g14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="google/tipsv2-g14", 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-g14", trust_remote_code=True) model = AutoModel.from_pretrained("google/tipsv2-g14", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update configuration_tips.py
Verified signatureUploads configuration_tips.py.f154ae5 -
Update files for transformers integration
Verified signatureUpdates the repo to smoothly integrate with transformers. PR: https://github.com/huggingface/transformers/pull/46347 Changes: - Update `config.json` to match transformers structure - Update config classes to handle new `config.json` - Add processor and tokenizer configs - Update DPT `model.safetensors` files to include DPT head + backbone weights - Update DPT model code to handle extra weights in `model.safetensors` file0b1a903
-
Fix broken image URL and add missing .cpu() in code snippets
Verified signaturea4f58f8 -
Remove zero-shot segmentation snippet, link to GitHub for advanced use cases
Gabriele18d5063
-
PCA visualization: add whitening and sigmoid
Gabriele4842da4 -
Add navigation table linking all variants and DPT heads
Gabrielecf63d64
-
Switch to bus image with matching classes
Gabrielebe4b3bf -
Improve code examples: better classes, descriptive comments
Gabrieled867321 -
Use cat photo, add print statements to code examples
Gabrielec1eb665 -
Fix meta device crash: use pure Python for drop_path_rate
Gabriele1785a7e -
Fix zero-shot segmentation section, use public example image
Gabrieleee929f8
-
Update README
Gabrielec7d0623 -
Align image_encoder.py drop_path_rate computation with upstream
Gabriele8e6f865 -
Upload README.md with huggingface_hub
Verified signature0a0e878
-
Upload model.safetensors with huggingface_hub
Verified signature593cb6c -
Upload README.md with huggingface_hub
Verified signature7ff1d09 -
Upload config.json with huggingface_hub
Verified signaturee3627f6 -
Upload tokenizer.model with huggingface_hub
Verified signature23b4e86 -
Upload text_encoder.py with huggingface_hub
Verified signatureaee1bb7 -
Upload image_encoder.py with huggingface_hub
Verified signaturecfbf0ec -
Upload modeling_tips.py with huggingface_hub
Verified signature8a5436b -
Upload configuration_tips.py with huggingface_hub
Verified signaturea0a1e6a -
initial commit
Verified signaturefad3103