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
-
Update Test D KAGL eval: canonical labels, descriptor-expanded text, hier-dominant fusion, audit logging, macro-F1 + per-class breakdown
Verified signature0e70681
-
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 -
Upload evaluation/test_color_across_hierarchies.py with huggingface_hub
Verified signature8a7c966 -
Upload evaluation/sec536_embedding_structure.py with huggingface_hub
Verified signature3e2b688 -
Upload evaluation/sec533_clip_nn_accuracy.py with huggingface_hub
Verified signature26c2a79 -
Upload evaluation/sec52_category_model_eval.py with huggingface_hub
Verified signature2dd8fc6 -
Upload evaluation/sec51_color_model_eval.py with huggingface_hub
Verified signature942267d -
Upload evaluation/run_all_evaluations.py with huggingface_hub
Verified signature7a5206c -
Upload evaluation/annex94_search_demo.py with huggingface_hub
Verified signature8278380 -
Upload evaluation/annex93_tsne.py with huggingface_hub
Verified signature8355833 -
Upload evaluation/annex92_color_heatmaps.py with huggingface_hub
Verified signaturef38441f -
Delete evaluation/utils/.DS_Store with huggingface_hub
Verified signatureb950038 -
Delete evaluation/.DS_Store with huggingface_hub
Verified signature6fa8c3a -
Delete evaluation/sec5354_separation_semantic.py with huggingface_hub
Verified signature4fba59e
-
Upload evaluation/sec536_embedding_structure.py with huggingface_hub
Verified signaturedfbd75b -
Upload evaluation/sec51_color_model_eval.py with huggingface_hub
Verified signatured98f1af
-
Update repository with restructured codebase
Verified signaturefac3f86
-
Upload evaluation/color_evaluation.py with huggingface_hub
Verified signatured98569a
-
Upload evaluation/hierarchy_evaluation.py with huggingface_hub
Verified signatured8d8ac9 -
Upload evaluation/main_model_evaluation.py with huggingface_hub
Verified signature0b81bbe -
Upload evaluation/run_all_evaluations.py with huggingface_hub
Verified signature1419f2c -
Upload evaluation/main_model_evaluation.py with huggingface_hub
Verified signature9f6ec81 -
Upload evaluation/hierarchy_evaluation.py with huggingface_hub
Verified signature70f9f13 -
Upload evaluation/color_evaluation.py with huggingface_hub
Verified signature43824ca -
Delete evaluation/evaluate_color_embeddings.py
Verified signature12af832 -
Delete evaluation/hierarchy_evaluation_with_clip_baseline.py
Verified signaturecf1d922
-
Upload evaluation/heatmap_color_similarities.py with huggingface_hub
Verified signaturec97f09a -
Upload evaluation/main_model_evaluation.py with huggingface_hub
Verified signature8c71174
-
Upload evaluation/main_model_evaluation.py with huggingface_hub
Verified signaturee805bc3 -
Upload evaluation/basic_test_generalized.py with huggingface_hub
Verified signature8b62bf6 -
Upload evaluation/tsne_images.py with huggingface_hub
Verified signature4611995 -
Upload evaluation/hierarchy_evaluation_with_clip_baseline.py with huggingface_hub
Verified signatured1b4c8f -
Upload evaluation/hierarchy_evaluation.py with huggingface_hub
Verified signature4c2095f -
Upload evaluation/main_model_evaluation.py with huggingface_hub
Verified signaturef16c04f -
Upload evaluation/fashion_search.py with huggingface_hub
Verified signature9be16b3 -
Upload evaluation/evaluate_color_embeddings.py with huggingface_hub
Verified signature61f1c2b -
Upload evaluation/basic_test_generalized.py with huggingface_hub
Verified signature11dbd66 -
Upload evaluation/0_shot_classification.py with huggingface_hub
Verified signature65073e2