인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

clip_prompt_zeroshot

clip_prompt_zeroshot

Build prompt-ensemble zero-shot classifiers from normalized image and text embeddings in the CLIP style.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: clip_prompt_zeroshot description: Build prompt-ensemble zero-shot classifiers from normalized image and text embeddings in the CLIP style.

CLIP Prompt Zero-Shot

Use this skill when a task must classify image embeddings by comparing them with text embeddings of rendered class prompts. It preserves the paper's zero-shot transfer mechanism without requiring target-task supervised training.

Inputs

  • Image embeddings to classify.
  • Class names and prompt templates.
  • A deterministic prompt embedding mapping or model adapter.

Outputs

  • Class scores, probabilities, and top predictions.
  • Prompt ensemble diagnostics showing which prompt vectors contributed to each class vector.

Workflow

  1. Render prompts from class names and templates.
  2. Obtain or supply one embedding per rendered prompt.
  3. Normalize prompt embeddings and average them per class, then normalize the class vector.
  4. Compare normalized image embeddings to class text vectors and select the highest score.

Validation

Run python tests/test_prompt_zeroshot.py or validate with the Distiller skill validator.

Limitations

The skill does not download pretrained models. In reduced recovery, prompt embeddings may be deterministic fixtures if declared as proxy evidence.

저장한 Skills