CLIP-Count: Towards Text-Guided Zero-Shot Object Counting

Ruixiang Jiang, Lingbo Liu, Changwen Chen
5/12/2023
168 citations
cs.CVcs.AI

Official code: songrise/CLIP-Count (124 stars, Python, MIT, last commit 2024-03-20).

Abstract

Recent advances in visual-language models have shown remarkable zero-shot text-image matching ability that is transferable to downstream tasks such as object detection and segmentation. Adapting these models for object counting, however, remains a formidable challenge.

Show full abstract

In this study, we first investigate transferring vision-language models (VLMs) for class-agnostic object counting. Specifically, we propose CLIP-Count, the first end-to-end pipeline that estimates density maps for open-vocabulary objects with text guidance in a zero-shot manner. To align the text embedding with dense visual features, we introduce a patch-text contrastive loss that guides the model to learn informative patch-level visual representations for dense prediction. Moreover, we design a hierarchical patch-text interaction module to propagate semantic information across different resolution levels of visual features. Benefiting from the full exploitation of the rich image-text alignment knowledge of pretrained VLMs, our method effectively generates high-quality density maps for objects-of-interest. Extensive experiments on FSC-147, CARPK, and ShanghaiTech crowd counting datasets demonstrate state-of-the-art accuracy and generalizability of the proposed method. Code is available: https://github.com/songrise/CLIP-Count.

View on arXivView PDF

Code Implementations(1)

MIT

[ACM MM23] CLIP-Count: Towards Text-Guided Zero-Shot Object Counting

12412PythonMay 12, 20232 years agoMIT

Similar Papers

Cite this paper

@article{jiang2023clipcount,
  title  = {CLIP-Count: Towards Text-Guided Zero-Shot Object Counting},
  author = {Ruixiang Jiang and Lingbo Liu and Changwen Chen},
  year   = {2023},
  eprint = {2305.07304},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.07304v2}
}

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/2305.07304.svg)](https://codeofpaper.com/paper/2305.07304)

Discussion