#107 · Primary category: Foundation Models
CoCa-pytorch
Implementation of CoCa, Contrastive Captioners are Image-Text Foundation Models, in Pytorch
Project last updated:12/12/23
GitHub Stars
1.2K
Forks
89
Contributors
1
License
MIT
Why we included this project
Phil Wang's CoCa-pytorch is a research-grade PyTorch implementation of the CoCa architecture, a contrastive captioner that folds contrastive learning into a conventional image-to-text encoder-decoder transformer. The paper reports 91.0% top-1 accuracy on ImageNet after fine-tuning the encoder, and the code follows the PaLM-style transformer layout with parallel SwiGLU feedforwards. If you want to train your own image-text model rather than call a hosted API, the usage examples show how to slot in a pretrained vision transformer and pull out caption logits or CLIP-style embeddings. This is not a pretrained release, so expect to bring your own data and training loop; the OpenClip team has trained CoCa weights you can fine-tune instead. It suits researchers and engineers who prefer seeing exactly how the architecture.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
CLIP
CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
MiniCPM-V
A Pocket-Sized MLLM for Ultra-Efficient Image and Video Understanding on Your Phone
generative-models
Generative Models by Stability AI
unilm
Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities