Robust Zero-Shot Crowd Counting and Localization With Adaptive Resolution SAM
Jia Wan, Qiangqiang Wu, Wei Lin, Antoni B. Chan
TL;DR
This work tackles unsupervised crowd counting in dense scenes by leveraging AdaSEEM, an adaptive-resolution extension of SEEM, to generate high-quality masks and address scale and occlusion challenges. It couples this with a Gaussian Mixture Model–based head localization to produce reliable point pseudo-labels and a robust loss that combines mask and point supervision while excluding uncertain regions, enabling effective density-map regression without manual labels. An iterative pseudo-label generation loop refines segmentation masks by using predictions from a well-trained counting network, yielding progressively better pseudo-labels and improved counts and localizations. Evaluations across multiple datasets show state-of-the-art unsupervised performance and competitive results with some supervised methods, highlighting the method’s potential for labeling-free crowd analytics and its applicability to real-world scenarios where annotations are scarce or unavailable.
Abstract
The existing crowd counting models require extensive training data, which is time-consuming to annotate. To tackle this issue, we propose a simple yet effective crowd counting method by utilizing the Segment-Everything-Everywhere Model (SEEM), an adaptation of the Segmentation Anything Model (SAM), to generate pseudo-labels for training crowd counting models. However, our initial investigation reveals that SEEM's performance in dense crowd scenes is limited, primarily due to the omission of many persons in high-density areas. To overcome this limitation, we propose an adaptive resolution SEEM to handle the scale variations, occlusions, and overlapping of people within crowd scenes. Alongside this, we introduce a robust localization method, based on Gaussian Mixture Models, for predicting the head positions in the predicted people masks. Given the mask and point pseudo-labels, we propose a robust loss function, which is designed to exclude uncertain regions based on SEEM's predictions, thereby enhancing the training process of the counting networks. Finally, we propose an iterative method for generating pseudo-labels. This method aims at improving the quality of the segmentation masks by identifying more tiny persons in high-density regions, which are often missed in the first pseudo-labeling stage. Overall, our proposed method achieves the best unsupervised performance in crowd counting, while also being comparable results to some supervised methods. This makes it a highly effective and versatile tool for crowd counting, especially in situations where labeled data is not available.
