CrowdDiff: Multi-Hypothesis Crowd Density Estimation Using Diffusion Models

Y. Ranasinghe, Nithin Gopalakrishnan Nair, W. G. C. Bandara, Vishal M. Patel
2/14/2026

No official code found. Best implementation: dylran/crowddiff (146 stars, MIT, last commit 2024-04-02).

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. Further-more, 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 out-performs existing state-of-the-art crowd counting methods on several public crowd analysis benchmarks with significant improvements. CrowdDiff project is available at: https://dylran.github.io/crowddiffgithub.io.

View on arXivView PDF

Code Implementations(1)

dylran/crowddiffCommunity100%
MIT
14617Shell, PythonMar 16, 20232 years agoMIT

Similar Papers

Cite this paper

@article{ranasinghe2026crowddiff,
  title  = {CrowdDiff: Multi-Hypothesis Crowd Density Estimation Using Diffusion Models},
  author = {Y. Ranasinghe and Nithin Gopalakrishnan Nair and W. G. C. Bandara and Vishal M. Patel},
  year   = {2026},
  eprint = {2303.12790},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.12790},
  journal = {CVPR 2023 2023}
}

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

Discussion