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

  • Log In
  • Sign Up

sujitpal
/
clip-imageclef

Zero-Shot Image Classification
Transformers
PyTorch
English
clip
multimodal
language
vision
image-search
Model card Files Files and versions
xet
Community
2

Instructions to use sujitpal/clip-imageclef with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use sujitpal/clip-imageclef with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="sujitpal/clip-imageclef")
    pipe(
        "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",
        candidate_labels=["animals", "humans", "landscape"],
    )
    # Load model directly
    from transformers import AutoProcessor, AutoModelForZeroShotImageClassification
    
    processor = AutoProcessor.from_pretrained("sujitpal/clip-imageclef")
    model = AutoModelForZeroShotImageClassification.from_pretrained("sujitpal/clip-imageclef")
  • Notebooks
  • Google Colab
  • Kaggle
clip-imageclef
605 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
sujitpal's picture
sujitpal
Update README.md
cb96bbd over 2 years ago
  • .gitattributes
    1.22 kB
    initial commit about 4 years ago
  • README.md
    1.66 kB
    Update README.md over 2 years ago
  • config.json
    4.11 kB
    new: initial commit about 4 years ago
  • pytorch_model.bin
    605 MB
    xet
    new: initial revision about 4 years ago