Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

google
/
tipsv2-b14

Zero-Shot Image Classification
Transformers
Safetensors
tipsv2
feature-extraction
vision
image-text
contrastive-learning
zero-shot
custom_code
Model card Files Files and versions
xet
Community
2

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"],
    )
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("google/tipsv2-b14", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
tipsv2-b14
785 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 21 commits
gberton's picture
gberton
Fix broken image URL and add missing .cpu() in code snippets
245de45 verified 22 days ago
  • .gitattributes
    1.52 kB
    initial commit 28 days ago
  • README.md
    4.34 kB
    Fix broken image URL and add missing .cpu() in code snippets 22 days ago
  • config.json
    528 Bytes
    Upload config.json with huggingface_hub 28 days ago
  • configuration_tips.py
    1.29 kB
    Upload configuration_tips.py with huggingface_hub 28 days ago
  • image_encoder.py
    30.8 kB
    Fix meta device crash: use pure Python for drop_path_rate 26 days ago
  • model.safetensors
    784 MB
    xet
    Upload model.safetensors with huggingface_hub 28 days ago
  • modeling_tips.py
    5.36 kB
    Upload modeling_tips.py with huggingface_hub 28 days ago
  • text_encoder.py
    10.6 kB
    Upload text_encoder.py with huggingface_hub 28 days ago
  • tokenizer.model
    732 kB
    xet
    Upload tokenizer.model with huggingface_hub 28 days ago