NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Independent Instance Maps for Crowd Localization

Junyu Gao, Tao Han, Yuan Yuan, Qi WangarXiv 2020

TL;DR

This paper introduces Independent Instance Maps (IIM), a novel framework for crowd localization that treats each head as a distinct, non-overlapping connected component. By employing a differentiable Binarization Module (BM), IIM adaptively learns pixel-wise thresholds to generate precise instance maps, significantly outperforming existing methods on challenging crowd datasets.

What Problem Does This Paper Address?

Accurately pinpointing the location of every individual in a crowded scene is a fundamental yet difficult problem in computer vision. Traditional methods fall short: density-based approaches offer only coarse predictions, while detection or segmentation methods struggle with extremely dense crowds and significant variations in head scale. The lack of readily available, fine-grained bounding box annotations for crowd localization has also historically hindered progress. This paper aims to bridge this gap by proposing a more robust and accurate method for crowd localization that can handle dense scenes and scale variations effectively.

Methods

The core of the proposed method is the Independent Instance Map (IIM) framework. Instead of relying on density maps or bounding boxes, IIM segments each head as an independent connected component. This allows for direct extraction of head positions and counts.

The key innovation is the differentiable Binarization Module (BM). This module takes a confidence map (generated by a confidence predictor) and adaptively learns a threshold to produce a binary instance map. The BM has two main advantages:

  1. Adaptive Thresholding: It learns a threshold map that can vary across pixels, allowing for more accurate detection of instances with different densities and scales. This is achieved through a Threshold Encoder (TE) that maps image features to threshold values.
  2. End-to-End Training: The BM enables direct training of the model using a loss function applied to the binary predictions and ground truth labels, facilitating gradient flow back to the confidence predictor.

The paper also distinguishes between two schemes for the BM:

  • Image-level Binarization Module (IBM): Uses a single learned threshold for the entire image.
  • Pixel-level Binarization Module (PBM): Learns a threshold map, providing finer-grained control and better handling of scale variations. PBM utilizes a more complex threshold encoder architecture.

Datasets

The paper evaluates its method on several widely used crowd analysis datasets:

  • NWPU-Crowd [5]: A large-scale benchmark for crowd counting and localization, containing both head points and box labels.
  • Shanghai Tech [22]: Consists of two subsets (Part A and Part B) with dense crowd scenes.
  • UCF-QNRF [11]: Another dense crowd dataset.
  • FDST [43]: A dataset with videos captured from various scenes, providing point and box labels.

The authors also mention using NWPU-Crowd and FDST for generating labels for their IIM framework, and for training a head scale prediction network when only point annotations are available.

Key Insights and Ideas

  • Independent Instance Maps (IIM) are superior for localization: The paper argues that representing each head as a distinct, non-overlapping connected component is more suitable for precise localization than traditional density or bounding box representations, especially in dense crowds.
  • Adaptive thresholding is crucial for scale variation: The core challenge of varying head sizes is addressed by learning adaptive thresholds, rather than using a fixed global threshold. This allows the model to distinguish between heads and background noise more effectively across different scales.
  • Differentiable Binarization Module (BM) enables end-to-end learning: Making the binarization process differentiable is key to allowing gradients to flow back through the network, enabling joint optimization of both the confidence predictor and the threshold learner.
  • Pixel-level thresholding (PBM) offers finer control: The PBM, which generates a threshold map, demonstrates superior performance over the image-level IBM, highlighting the benefit of localized threshold adaptation.
  • Antagonistic roles of confidence predictor and threshold learner: The confidence predictor aims to increase confidence in object regions and decrease it in backgrounds, while the threshold learner aims to set low thresholds for objects and high for backgrounds. This adversarial relationship, when managed correctly, leads to better segmentation.

Key Results

  • State-of-the-art performance: The proposed IIM framework significantly outperforms existing state-of-the-art methods on the NWPU-Crowd benchmark, achieving the top rank with an F1-measure of 76.2% and an MAE of 87.1.
  • Improved F1-measure: On the NWPU-Crowd Localization task, IIM improves the F1-measure by 10.4% compared to previous methods.
  • Robustness across datasets: IIM demonstrates strong performance across multiple datasets (ShanghaiTech Part A/B, UCF-QNRF, FDST), consistently achieving competitive or superior results in localization metrics like F1-measure and Precision.
  • Effective handling of dense and varied scales: Visualizations show IIM's ability to accurately localize heads in extremely dense scenes where other methods fail, and its competitive performance on both tiny and large objects.
  • Robustness to negative samples: The method shows strong performance on the NWPU-Crowd Negative Samples subset, indicating robustness to background clutter and non-person objects.

Limitations and Future Work

  • Localization of extremely small heads: While IIM performs well across various scales, the authors acknowledge that localizing extremely small heads in very dense crowds remains a challenge.
  • Future work: The authors plan to focus on improving the localization of these extremely small heads in future research.

Summary updated

BibTeX
@misc{gao2020learning,
  author = {Junyu Gao and Tao Han and Yuan Yuan and Qi Wang},
  title = {{Learning Independent Instance Maps for Crowd Localization}},
  year = {2020},
  eprint = {2012.04164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.04164},
}
Figure