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 / evaluation
340 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 41 commits
Leacb4's picture
Leacb4
Update Test D KAGL eval: canonical labels, descriptor-expanded text, hier-dominant fusion, audit logging, macro-F1 + per-class breakdown
0e70681 verified 11 days ago
  • utils
    Upload evaluation/utils/model_loader.py with huggingface_hub about 1 month ago
  • annex92_color_heatmaps.py
    33.6 kB
    Upload evaluation/annex92_color_heatmaps.py with huggingface_hub about 1 month ago
  • annex93_tsne.py
    18.6 kB
    Upload evaluation/annex93_tsne.py with huggingface_hub about 1 month ago
  • annex94_search_demo.py
    15.1 kB
    Upload evaluation/annex94_search_demo.py with huggingface_hub about 1 month ago
  • run_all_evaluations.py
    12.4 kB
    Upload evaluation/run_all_evaluations.py with huggingface_hub about 1 month ago
  • sec51_color_model_eval.py
    20.7 kB
    Upload evaluation/sec51_color_model_eval.py with huggingface_hub about 1 month ago
  • sec52_category_model_eval.py
    38.3 kB
    Upload evaluation/sec52_category_model_eval.py with huggingface_hub about 1 month ago
  • sec533_clip_nn_accuracy.py
    43.9 kB
    Upload evaluation/sec533_clip_nn_accuracy.py with huggingface_hub about 1 month ago
  • sec536_embedding_structure.py
    95.3 kB
    Update Test D KAGL eval: canonical labels, descriptor-expanded text, hier-dominant fusion, audit logging, macro-F1 + per-class breakdown 11 days ago
  • test_color_across_hierarchies.py
    24.3 kB
    Upload evaluation/test_color_across_hierarchies.py with huggingface_hub about 1 month ago