Classify CIFAR-10 images with no training at all: encode images and class-name prompts with OpenAI's CLIP ViT-B/32, normalise the embeddings and predict by cosine similarity. Compare prompt templates (bare label vs "a photo of a {}." vs a template ensemble), read a confusion matrix, then flip the model around for free-text image search. The first cell downloads the CIFAR-10 test split from the Hugging Face Hub (~24 MB) and the CLIP weights (~600 MB).
Data & Model Download
Embedding Images & Text
Zero-Shot Classification
Text-to-Image Retrieval
Premium Project
This guided, GPU-powered project is available to Premium members. Upgrade to train models end-to-end in an interactive notebook.