clip

Classify images and match image-text pairs using OpenAI's CLIP model.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill clip-tianhao909
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clip
Source: https://github.com/tianhao909/AI-Research-SKILLs-cn/tree/main/18-multimodal/clip
Command: npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill clip-tianhao909

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires transformers, torch, pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables AI to understand the relationship between images and text, allowing for tasks that require cross-modal understanding without specific training data.

Core Features & Use Cases

  • Zero-Shot Classification: Classify images into categories defined by text descriptions.
  • Image-Text Similarity: Measure how well an image and a piece of text match semantically.
  • Semantic Search: Find images based on natural language queries.
  • Content Moderation: Identify inappropriate or sensitive content in images.

Quick Start

Use the clip skill to classify the attached image 'photo.jpg' into one of the following categories: 'a dog', 'a cat', 'a bird', 'a car'.

Frequently Asked Questions about clip

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform zero-shot image classification without task-specific training data?

Zero-shot image classification categorizes images using text descriptions without fine-tuning by leveraging OpenAI's CLIP model, which was trained on 400 million image-text pairs to bridge vision and language understanding.

Can I measure image-text similarity for semantic search using natural language queries?

Image-text similarity measures how well an image and text match semantically, enabling semantic image search where you find images based on natural language queries using the CLIP model.

Does zero-shot image classification work with the transformers and torch libraries?

Zero-shot image classification with CLIP works directly with the transformers and torch libraries, requiring pillow for image processing to execute vision-language matching tasks.

What's the best way to classify images into custom categories defined by text?

Classifying images into custom text-defined categories is best handled through zero-shot classification using CLIP, which maps images and text into a shared semantic space for direct matching.

Can I use CLIP for content moderation to identify inappropriate or sensitive images?

Content moderation identifies inappropriate or sensitive content in images by utilizing CLIP's zero-shot classification to match visual content against text descriptions of sensitive categories.

Why does zero-shot image classification require a model trained on image-text pairs?

Zero-shot image classification requires a model trained on image-text pairs because the cross-modal understanding learned from 400 million pairs enables mapping between visual features and semantic text descriptions without task-specific fine-tuning.