본문으로 건너뛰기
cccskills
무료GitHub에 공개

clip

Use OpenAI CLIP for zero-shot image-text inference, prompt engineering, feature extraction, and responsible evaluation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구OpenAI
설치 방법 보기

포함된 파일(21)

  • SKILL.md5.1 KB
  • references/repo-provenance.md2.1 KB
  • references/repo-routing-metadata.json311 B
  • references/troubleshooting.md4.4 KB
  • scripts/validate_clip_runtime.py3.3 KB
  • sub-skills/feature-evaluation/references/feature-workflows.md5.7 KB
  • sub-skills/feature-evaluation/references/responsible-evaluation.md4.4 KB
  • sub-skills/feature-evaluation/references/troubleshooting.md3.9 KB
  • sub-skills/feature-evaluation/scripts/extract_image_features.py7.5 KB
  • sub-skills/feature-evaluation/SKILL.md2.1 KB
  • sub-skills/model-loading-inference/references/api-reference.md5.5 KB
  • sub-skills/model-loading-inference/references/troubleshooting.md5.1 KB
  • sub-skills/model-loading-inference/references/workflows.md5.8 KB
  • sub-skills/model-loading-inference/scripts/clip_smoke_check.py4.3 KB
  • sub-skills/model-loading-inference/scripts/image_text_similarity.py5.8 KB
  • sub-skills/model-loading-inference/SKILL.md1.8 KB
  • sub-skills/prompt-engineering/references/prompting-workflows.md6.0 KB
  • sub-skills/prompt-engineering/references/tokenization.md4.3 KB
  • sub-skills/prompt-engineering/references/troubleshooting.md4.4 KB
  • sub-skills/prompt-engineering/scripts/build_zeroshot_classifier.py12.3 KB
  • sub-skills/prompt-engineering/SKILL.md2.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

CLIP

Use this skill when a task involves OpenAI CLIP: zero-shot image classification, image-text similarity, prompt template design, tokenization, CLIP image/text embeddings, linear-probe evaluation, or troubleshooting CLIP model loading.

Fast Route

  • For model names, clip.load, preprocessing, image-text logits, local checkpoints, JIT/device choices, and cache/download behavior, read model-loading-inference.
  • For class-name prompt templates, clip.tokenize, context-length failures, zero-shot classifier weights, and prompt ensembling, read prompt-engineering.
  • For batch image/text feature extraction, .npz embedding outputs, similarity/search prototypes, linear probes, and responsible evaluation limits, read feature-evaluation.
  • For package-wide install/import, dependency, checkpoint download, dataset, and safety issues, read references/troubleshooting.md.
  • For a no-download runtime check, run python scripts/validate_clip_runtime.py --json.

Use This Skill When

  • The user names clip, OpenAI CLIP, ViT-B/32, RN50, clip.load, clip.tokenize, encode_image, or encode_text.
  • The task asks for zero-shot image classification, image-to-text ranking, image/text embedding extraction, CLIP feature caching, or CLIP linear-probe evaluation.
  • The task mentions prompt templates for vision-language classification, prompt ensembling, class taxonomy design, or CLIP context length 77.
  • The task has errors involving CLIP checkpoint downloads, checksum/cache problems, CPU/CUDA tensor placement, TorchScript/JIT loading, or overlong tokenized text.

Avoid This Skill When

  • The user is using OpenCLIP, Hugging Face transformers.CLIPModel, SigLIP, BLIP, or another CLIP-like implementation rather than this package.
  • The user wants to train CLIP from scratch; this repository primarily exposes released model loading, inference, feature extraction, and evaluation examples.
  • The request is about deploying CLIP in production, surveillance, facial recognition, or sensitive demographic classification without explicit research-only framing and safety review.
  • The task is a general PyTorch, torchvision, or image-classification issue with no CLIP-specific API, model, tokenizer, or prompt signal.

Minimal Setup Pattern

Install PyTorch/torchvision first using the wheel or conda variant appropriate for the user's CPU/CUDA environment, then install CLIP and its lightweight text/tokenizer dependencies:

pip install ftfy regex tqdm
pip install git+https://github.com/openai/CLIP.git

Run a no-download import/tokenizer check before any checkpoint download:

python scripts/validate_clip_runtime.py --json

A healthy runtime imports clip, lists the nine released model names, tokenizes sample text to shape [n, 77], and reports that no checkpoint downloads were attempted.

Checkpoint and Dataset Policy

  • clip.load("ViT-B/32") and other named models may download checkpoints if they are not cached; ask before triggering downloads in restricted, offline, or expensive environments.
  • Use download_root= to point CLIP at a cache, or pass a local checkpoint path as name for strict offline workflows.
  • README examples using CIFAR100 and dataset docs for Country211, Rendered SST2, and YFCC100M require network and potentially large downloads; treat them as opt-in verification or evaluation evidence, not default skill actions.
  • The native JIT/eager consistency test can download every available model, so run it only when checkpoint downloads and time budget are explicitly allowed.

Core API Facts

  • clip.available_models() returns the released model names: RN50, RN101, RN50x4, RN50x16, RN50x64, ViT-B/32, ViT-B/16, ViT-L/14, and ViT-L/14@336px.
  • clip.load(name, device=..., jit=False, download_root=None) returns (model, preprocess) for a named model or local checkpoint path.
  • clip.tokenize(texts, context_length=77, truncate=False) returns a [number_of_texts, context_length] token tensor and raises on overlong prompts unless truncate=True.
  • Loaded models expose encode_image(image), encode_text(text), and model(image, text); the forward call returns image/text logit matrices derived from normalized cosine similarities.

Responsible Use

CLIP was released as a research model for studying robustness and zero-shot transfer. Model-card evidence warns that performance depends strongly on class taxonomy and prompts, that the model is English-oriented, and that deployment, surveillance, facial recognition, and sensitive demographic classification are out of scope without careful task-specific testing and safety review. Route evaluation and safety questions through feature-evaluation responsible guidance.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa

무료

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

3ddfa-v2

무료

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

ab3dmot

무료

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

acme

무료

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

VectorSpaceLab/AREX-Skill3382026년 9월 3일 업데이트

VectorSpaceLab의 스킬 모두 보기

이 스킬의 문제 신고