T2ICount: Enhancing Cross-modal Understanding for Zero-Shot Counting
Yifei Qian, Zhongliang Guo, Bowen Deng, Chun Tong Lei, Shuai Zhao, Chun Pong Lau, Xiaopeng Hong, Michael P. Pound
TL;DR
This work tackles zero-shot object counting by addressing text insensitivity in text-guided paradigms. It introduces T2ICount, a diffusion-model–based framework that uses single-step features for efficiency but incorporates a Hierarchical Semantic Correction Module and a Representational Regional Coherence Loss to restore strong text–image alignment. The authors also curate FSC-147-S, a harder evaluation subset that stresses counting of text-specified categories beyond the majority class, and demonstrate state-of-the-art performance on FSC-147 and FSC-147-S, with competitive results on CARPK. Overall, the approach provides a practical, cross-modal counting solution with robust text-conditioned supervision and a more rigorous evaluation protocol for text-guided counting.
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 T2ICount, a diffusion-based framework that leverages rich prior knowledge and fine-grained visual understanding from pretrained diffusion models. While one-step denoising 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 denosing 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/cha15yq/T2ICount.
