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

  • Log In
  • Sign Up

Leacb4
/
gap-clip

Zero-Shot Image Classification
Transformers
Safetensors
English
clip
fashion
multimodal
image-search
text-search
embeddings
contrastive-learning
zero-shot-classification
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use Leacb4/gap-clip with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="Leacb4/gap-clip")
    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("Leacb4/gap-clip")
    model = AutoModelForZeroShotImageClassification.from_pretrained("Leacb4/gap-clip")
  • Notebooks
  • Google Colab
  • Kaggle
gap-clip / paper
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
Leacb4's picture
Leacb4
delete
02afbb9 verified 11 days ago
  • paper.pdf
    30.1 MB
    xet
    Update paper: KAGL Test D — canonical labels, descriptor expansion, hier-dominant fusion (0.45 -> 0.72) 11 days ago