openai/CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#8 Repository Của Tuần
#9 Repository Của Tuần
#5 Repository Của Tuần
🖼️ Zero-Shot Matching Between Images and Text
Predict the most relevant text snippet for an image, with no direct task training.
CLIP (Contrastive Language-Image Pre-Training) is a neural network from OpenAI trained on a variety of (image, text) pairs. It can be instructed in natural language to predict the most relevant text snippet given an image, without directly optimizing for the task. On ImageNet, CLIP matched the performance of the original ResNet50 in zero-shot without using any of the original 1.28M labeled examples.
✨ Highlights
- Contrastive (image, text) training: Learns joint image-text representations from a wide range of (image, text) pairs.
- Natural language prompting: Uses custom text descriptions at inference time to rank which snippet fits a given image.
- Zero-shot transfer: Can perform tasks like ImageNet classification without using that dataset's labeled examples.
- Practical API: Provides
clip.available_models(),clip.load(),clip.tokenize(),model.encode_image(),model.encode_text(), andmodel(image, text). - Ready examples: Includes zero-shot prediction on CIFAR-100 and linear-probe evaluation using scikit-learn.
- Multiple model variants: Supports loading different CLIP model names via
clip.load().
💡 Why it matters
Instead of training a new classifier for each vision task, CLIP lets the task be defined by text prompts at inference time. This shifts the work from collecting task-specific labels to writing candidate descriptions, using a single model across different label sets.
With its joint image-text features, it fits zero-shot classification, retrieval, and feature extraction without directly fine-tuning for a fixed set of classes.
#CLIP #ZeroShot #VisionLanguage #TiniX
Similar Projects
Discover other similar projects and AI models.
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Tensors and Dynamic neural networks in Python with strong GPU acceleration
Learn how to develop, deploy and iterate on production-grade ML applications.
TensorFlow Tutorial and Examples for Beginners (support TF v1 & v2)
🧑🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠
🧑🏫 60+ Implementations/tutorials of deep learning papers with side-by-side notes 📝; including transformers (original, xl, switch, feedback, vit, ...), optimizers (adam, adabelief, sophia, ...), gans(cyclegan, stylegan2, ...), 🎮 reinforcement learning (ppo, dqn), capsnet, distillation, ... 🧠