Zero-Shot Image Classification
Transformers
Safetensors
English
clip
fashion
multimodal
image-search
text-search
embeddings
contrastive-learning
zero-shot-classification
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"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("Leacb4/gap-clip") model = AutoModelForZeroShotImageClassification.from_pretrained("Leacb4/gap-clip", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload training/main_model.py with huggingface_hub
Verified signature463ac82 -
Upload training/hierarchy_model.py with huggingface_hub
Verified signatureec5c397 -
Upload training/color_model.py with huggingface_hub
Verified signaturefc411a2 -
Delete training/train_main_model.py with huggingface_hub
Verified signature568169a -
Delete training/optuna_optimisation.py with huggingface_hub
Verified signature4a21671
-
Upload training/main_model.py with huggingface_hub
Verified signature8805506
-
Update repository with restructured codebase
Verified signaturefac3f86