-
Notifications
You must be signed in to change notification settings - Fork 0
CLIP
title: CLIP type: language created: 2026-06-22 last_updated: 2026-06-22 related: ["radar/techniques/SemanticFrameScoring", "radar/tools/FireRedOpenStoryline", "radar/languages/Ultralytics"] sources: ["https://github.com/openai/CLIP", "https://nvarma.com/blog/2026-04-05-vibecoding-a-video-editing-pipeline"] radar_quadrant: Languages & Frameworks radar_ring: Assess radar_position: inner
CLIP (Contrastive Language-Image Pretraining) is an OpenAI model and Python library that encodes images and text into a shared embedding space, enabling zero-shot image classification and text-image similarity scoring without task-specific training data. Install via pip install git+https://github.com/openai/CLIP.git. MIT license, 33.8k stars. PyTorch 1.7.1+ required; CPU inference supported. Primary variant: ViT-B/32; larger variants (up to ViT-G/14) available via the community OpenCLIP project.
CLIP's core pipeline use is frame scoring: load a video frame as an image, encode it alongside a text prompt ("dramatic Pacific Ocean cliffs", "blurry photo"), compute cosine similarity, and rank frames by score. This requires no labeled training data and no domain-specific fine-tuning. The operator describes desired content in natural language; CLIP surfaces matching frames.
import clip, torch
from PIL import Image
model, preprocess = clip.load("ViT-B/32")
image = preprocess(Image.open("frame.jpg")).unsqueeze(0)
text = clip.tokenize(["dramatic cliffs", "blurry photo"])
with torch.no_grad():
logits, _ = model(image, text)
scores = logits.softmax(dim=-1)Zero-shot location tagging is a secondary application: compare a frame against a list of candidate place-name prompts and select the highest-scoring label. This degrades when environments are visually similar across candidates.
CLIP operates at the discovery layer, complementing radar/languages/Ultralytics rather than replacing it. YOLO answers "is there a person in this frame?" -- a detection question. CLIP answers "does this frame match a described scene?" -- a semantic quality question. Used together: YOLO filters frames containing the required subject class, CLIP ranks the filtered frames by aesthetic or contextual relevance. The ranked output feeds radar/tools/FireRedOpenStoryline as a timestamped clip list. This combined approach is the basis of radar/techniques/SemanticFrameScoring.
CLIP embeddings are used in production across the ML ecosystem: Stable Diffusion's conditioning pipeline, image search systems, and content moderation tools all rely on CLIP or derivatives. For the specific video frame scoring use case, Navin Varma's April 2026 pipeline (nvarma.com) confirmed it runs on Apple Silicon MPS, processes video frames at scale, and produces usable scenic rankings for highlight reel assembly. Limitation documented: 35-image batch limit before memory exhaustion on 24GB RAM; similar-looking locations confuse zero-shot tagging.
Placed in Languages & Frameworks / Trial / inner.
CLIP is production-grade at the model level: MIT license, 33.8k stars, backed by OpenAI, runs on CPU without GPU requirement. The inner Trial position reflects direct applicability to the video discovery layer of the pipeline this radar tracks, and confirmed use in a working video pipeline producing publishable output. The GitHub repository itself is sparse (58 commits, no versioned releases, 252 open issues) but the model weights are stable and the pip-installable library is the canonical distribution mechanism. OpenCLIP provides a community-maintained path to larger model variants.
Trial gate: confirmed use of CLIP frame scoring in a pipeline where similarity scores drive clip selection consumed programmatically by a downstream editing tool.