← all repositories

KaiyangZhou/CoOp

Prompt learning library for adapting vision-language foundation models like CLIP to downstream classification tasks.

2.2k stars Python Language Models
CoOp
Velocity · 7d
+1.3
★ / day
Trend
steady
star history

Provides implementations of CoOp and CoCoOp, two prompt learning methods for adapting large vision-language models (CLIP) to downstream datasets without full model fine-tuning. The techniques learn trainable prompt embeddings that combine with frozen pre-trained model features, enabling parameter-efficient transfer learning to new domains. Supports various downstream classification tasks including ImageNet and domain-shifted variants.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.