CrowdDiff: Multi-hypothesis Crowd Density Estimation using Diffusion Models

Johns Hopkins Univeristy
GIF 1 GIF 2 GIF 3 GIF 4

Abstract

Crowd counting is a fundamental problem in crowd analysis which is typically accomplished by estimating a crowd density map and summing over the density values. However, this approach suffers from background noise accumulation and loss of density due to the use of broad Gaussian kernels to create the ground truth density maps. This issue can be overcome by narrowing the Gaussian kernel. However, existing approaches perform poorly when trained with ground truth density maps with broad kernels. To deal with this limitation, we propose using conditional diffusion models to predict density maps, as diffusion models show high fidelity to training data during generation. With that, we present CrowdDiff that generates the crowd density map as a reverse diffusion process. Furthermore, as the intermediate time steps of the diffusion process are noisy, we incorporate a regression branch for direct crowd estimation only during training to improve the feature learning. In addition, owing to the stochastic nature of the diffusion model, we introduce producing multiple density maps to improve the counting performance contrary to the existing crowd counting pipelines. We conduct extensive experiments on publicly available datasets to validate the effectiveness of our method. CrowdDiff outperforms existing state-of-the-art crowd counting methods on several public crowd analysis benchmarks with significant improvements.

Performance on Public Crowd Benchmarks

Comparison with SOTA methods on the public crowd analysis benchmarks: JHU-Crowd++, ShanghaiTech, UCF, and NWPU-Crowd. The best results are shown in red. The second-best results are shown in blue.
Method Venue JHU SHA SHB QNRF NWPU
MAE↓ MSE↓ MAE↓ MSE↓ MAE↓ MSE↓ MAE↓ MSE↓ MAE↓ MSE↓
SUA ICCV'21 80.7 290.8 68.5 121.9 14.1 20.6 130.3 226.3 111.7 443.2
ChfL CVPR'22 57.0 235.7 57.5 94.3 6.9 11.0 80.3 137.6 76.8 343.0
CLTR ECCV'22 59.5 240.6 56.9 95.2 6.5 10.6 85.8 141.3 74.3 333.8
CrwodHat CVPR'23 52.3 211.8 51.2 81.9 5.7 9.4 75.1 126.7 68.7 296.9
STEERER ICCV'23 54.3 238.3 54.5 86.9 5.8 8.5 74.3 128.3 63.7 309.8
PET ICCV'23 58.5 238.0 49.3 78.8 6.2 9.7 79.5 144.3 74.4 328.5
CrowdDiff CVPR'24 47.3 198.9 47.4 75.0 5.7 8.2 68.9 125.6 57.8 221.2

CrowdDiff Pipeline

CrowdDiff Pipeline Flow Chart

Contributions

Stochastic crowd map generation is a key benefit of diffusion-based generative models. We can see that different realizations detect individuals that is not present in other realizations. Though this is a generative model, the proposed method has reassigned densities perfectly in certain instances, and for some cases, there is a slight shift in the location between realizations.

Image 1
Image 2
Image 3
Image 4
Image 3

Crowd map fusion leverages the stochastic nature of the crowd density maps produced by the diffusion process, and we adopt a systematic way to fuse the maps. We combine the crowd maps in the order of increasing similarity. The density kernels accepted by each realization are shown in green and the rejected kernels are shown in red.

Image 1
Realization 1 count: 349
Image 2
Realization 2 count: 351
Image 3
Realization 3 count: 356
Image 4
Realization 4 count: 360
Image 5
Combined prediction: 359    Ground truth: 361

BibTeX

Coming soon...
      
Acknowledgement: The website template is taken from Nerfies