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 evaluation/utils/model_loader.py with huggingface_hub
Verified signatureafbd922 -
Upload evaluation/utils/metrics.py with huggingface_hub
Verified signatureb3bf2b7 -
Upload evaluation/utils/embeddings.py with huggingface_hub
Verified signature4807234 -
Upload evaluation/utils/datasets.py with huggingface_hub
Verified signature48572da -
Delete evaluation/utils/.DS_Store with huggingface_hub
Verified signatureb950038
-
Update repository with restructured codebase
Verified signaturefac3f86