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 models/gap_clip.pth with huggingface_hub
Verified signature516bcb8 -
Upload models/hierarchy_model.pth with huggingface_hub
Verified signature1967fc8 -
Upload models/color_model.pt with huggingface_hub
Verified signature90665fd
-
Upload models/gap_clip.pth with huggingface_hub
Verified signaturebcdaf40
-
Upload models/gap_clip.pth with huggingface_hub
Verified signature6f62388 -
Upload models/hierarchy_model.pth with huggingface_hub
Verified signatureb07a251 -
Upload models/color_model.pt with huggingface_hub
Verified signatured86bc53 -
Delete models/main_model.py
Verified signature32f4666 -
Delete models/hierarchy_model.py
Verified signature22ab4d2 -
Delete models/color_model.py
Verified signature1b41378 -
Upload models/main_model.py with huggingface_hub
Verified signature5014bf7 -
Upload models/hierarchy_model.py with huggingface_hub
Verified signature0a876a6 -
Upload models/color_model.py with huggingface_hub
Verified signature37ec677