T2ICount: Enhancing Cross-Modal Understanding for Zero-Shot Counting

Yifei Qian, Zhongliang Guo, Bowen Deng, Chun Tong Lei, Shuai Zhao +3 more
2/10/2026

No official code found. Best implementation: cha15yq/T2ICount (27 stars, last commit 2025-04-09).

Abstract

Zero-Shot object counting aims to count instances of arbitrary object categories specified by text descriptions. Existing methods typically rely on vision-language models like CLIP, but often exhibit limited sensitivity to text prompts. We present T21 Count, a diffusion-based framework that lever-ages rich prior knowledge and fine-grained visual understanding from pretrained diffusion models. While one-step demising ensures efficiency, it leads to weakened text sensitivity. To address this challenge, we propose a Hierarchical Semantic Correction Module that progressively refines text-image feature alignment, and a Representational Regional Coherence Loss that provides reliable supervision signals by leveraging the cross-attention maps extracted from the demising U-Net. Furthermore, we observe that current benchmarks mainly focus on majority objects in images, potentially masking models' text sensitivity. To address this, we contribute a challenging re-annotated subset of FSC147 for better evaluation of text-guided counting ability. Extensive experiments demonstrate that our method achieves superior performance across different benchmarks. Code is available at https://github.com/chal5yq/T2lCount.

View on arXivView PDF

Code Implementations(1)

cha15yq/T2ICountCommunity64%

Official implement of CVPR2025 paper: "T2ICount: Enhancing Cross-modal Understanding for zero-shot Counting"

275PythonFeb 27, 20251 years ago

Similar Papers

Cite this paper

@article{qian2026ticount,
  title  = {T2ICount: Enhancing Cross-Modal Understanding for Zero-Shot Counting},
  author = {Yifei Qian and Zhongliang Guo and Bowen Deng and Chun Tong Lei and Shuai Zhao and Chun Pong Lau and Xiaopeng Hong and Michael P Pound},
  year   = {2026},
  eprint = {2502.20625},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.20625},
  journal = {CVPR 2025 2025}
}

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

Discussion