CrowdCLIP: Unsupervised Crowd Counting via Vision-Language Model

Dingkang Liang, Jiahao Xie, Zhikang Zou, Xiaoqing Ye, Wei Xu +1 more
2/14/2026

No official code found. Best implementation: dk-liang/CrowdCLIP (93 stars, last commit 2023-07-28).

Abstract

Supervised crowd counting relies heavily on costly manual labeling, which is difficult and expensive, especially in dense scenes. To alleviate the problem, we propose a novel unsupervised framework for crowd counting, named CrowdCLIP. The core idea is built on two observations: 1) the recent contrastive pre-trained vision-language model (CLIP) has presented impressive performance on various downstream tasks; 2) there is a natural mapping between crowd patches and count text. To the best of our knowledge, CrowdCLIP is the first to investigate the vision-language knowledge to solve the counting problem. Specifically, in the training stage, we exploit the multi-modal ranking loss by constructing ranking text prompts to match the size-sorted crowd patches to guide the image encoder learning. In the testing stage, to deal with the diversity of image patches, we propose a simple yet effective progressive filtering strategy to first select the highly potential crowd patches and then map them into the language space with various counting intervals. Extensive experiments on five challenging datasets demonstrate that the proposed CrowdCLIP achieves superior performance compared to previous unsupervised state-of-the-art counting methods. Notably, CrowdCLIP even surpasses some pop-ular fully-supervised methods under the cross-dataset setting. The source code will be available at https://github.com/dk-liang/CrowdCLIP.

View on arXivView PDF

Code Implementations(1)

dk-liang/CrowdCLIPCommunity100%

[CVPR 2023] CrowdCLIP: Unsupervised Crowd Counting via Vision-Language Model

9315Python, Jupyter NotebookApr 9, 20233 years ago

Similar Papers

Cite this paper

@article{liang2026crowdclip,
  title  = {CrowdCLIP: Unsupervised Crowd Counting via Vision-Language Model},
  author = {Dingkang Liang and Jiahao Xie and Zhikang Zou and Xiaoqing Ye and Wei Xu and Xiang Bai},
  year   = {2026},
  eprint = {2304.04231},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2304.04231},
  journal = {CVPR 2023 2023}
}

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

Discussion