CountCLIP -- [Re] Teaching CLIP to Count to Ten

Harshvardhan Mestha, Tejas Agrawal, Karan Bania, Shreyas V, Yash Bhisikar
6/5/2024
cs.CVcs.AIcs.LG

Official code: SforAiDl/CountCLIP (29 stars, last commit 2024-06-10).

Abstract

Large vision-language models (VLMs) are shown to learn rich joint image-text representations enabling high performances in relevant downstream tasks. However, they fail to showcase their quantitative understanding of objects, and they lack good counting-aware representation. This paper conducts a reproducibility study of 'Teaching CLIP to Count to Ten' (Paiss et al., 2023), which presents a method to finetune a CLIP model (Radford et al., 2021) to improve zero-shot counting accuracy in an image while maintaining the performance for zero-shot classification by introducing a counting-contrastive loss term. We improve the model's performance on a smaller subset of their training data with lower computational resources. We verify these claims by reproducing their study with our own code. The implementation can be found at https://github.com/SforAiDl/CountCLIP.

View on arXivView PDF

Code Implementations(1)

SforAiDl/CountCLIPOfficial100%
291Shell, PythonFeb 13, 20242 years ago

Similar Papers

Cite this paper

@article{mestha2024countclip,
  title  = {CountCLIP -- [Re] Teaching CLIP to Count to Ten},
  author = {Harshvardhan Mestha and Tejas Agrawal and Karan Bania and Shreyas V and Yash Bhisikar},
  year   = {2024},
  eprint = {2406.03586},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.03586v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.03586.svg)](https://codeofpaper.com/paper/2406.03586)

Discussion