RepositoryJupyter Notebook
openai

openai/CLIP

CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image

34.6kstars
4.1kforks
254issues
6views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

8
TINIX TRENDING·Chủ đề: deep-learning

#8 Repository Của Tuần

9
TINIX TRENDING·Chủ đề: deep-learning

#9 Repository Của Tuần

5
TINIX TRENDING·Chủ đề: machine-learning

#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(), and model(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.

RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.8k
Nov 23, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

108.8k
Nov 21, 2026
RepositoryPython
pytorch/pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

105.8k
Nov 22, 2026
RepositoryPython
d2l-ai/d2l-zh

《动手学深度学习》:面向中文读者、能运行、可讨论。中英文版被70多个国家的500多所大学用于教学。

82.6k
Jul 30, 2024
RepositoryJupyter Notebook
microsoft/AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!

71.0k
Nov 15, 2026
RepositoryJupyter Notebook
GokuMohandas/Made-With-ML

Learn how to develop, deploy and iterate on production-grade ML applications.

50.1k
Mar 4, 2026
RepositoryJupyter Notebook
aymericdamien/TensorFlow-Examples

TensorFlow Tutorial and Examples for Beginners (support TF v1 & v2)

43.7k
Nov 13, 2026
RepositoryPython
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 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, ... 🧠

67.8k
Nov 2, 2026
RepositoryPython
labmlai/annotated_deep_learning_paper_implementations

🧑‍🏫 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, ... 🧠

67.8k
Nov 2, 2026