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 / training
74 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
Leacb4's picture
Leacb4
Upload training/main_model.py with huggingface_hub
463ac82 verified about 1 month ago
  • __init__.py
    0 Bytes
    Update repository with restructured codebase about 2 months ago
  • color_model.py
    12.8 kB
    Upload training/color_model.py with huggingface_hub about 1 month ago
  • hierarchy_model.py
    29 kB
    Upload training/hierarchy_model.py with huggingface_hub about 1 month ago
  • main_model.py
    32.2 kB
    Upload training/main_model.py with huggingface_hub about 1 month ago