A Generalized Loss Function for Crowd Counting and Localization
Jia Wan, Ziquan Liu, Antoni B. Chan
Abstract
Previous work [40] shows that a better density map representation can improve the performance of crowd counting. In this paper, we investigate learning the density map representation through an unbalanced optimal transport problem, and propose a generalized loss function to learn density maps for crowd counting and localization. We prove that pixel-wise L2 loss and Bayesian loss [29] are special cases and suboptimal solutions to our proposed loss function. A perspective-guided transport cost function is further proposed to better handle the perspective transformation in crowd images. Since the predicted density will be pushed toward annotation positions, the density map prediction will be sparse and can naturally be used for localization. Finally, the proposed loss outperforms other losses on four large-scale datasets for counting, and achieves the best localization performance on NWPU-Crowd and UCF-QNRF.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 06f6cc47-d702-4c03-a903-7c7d3e17556bCited by top-tier papers28
- Boosting Crowd Counting via Multifaceted AttentionHui Lin, Zhiheng Ma, Rongrong Ji, Yaowei Wang et al.CVPR 2022 · 229 citations
- Rethinking Spatial Invariance of Convolutional Networks for Object CountingZhi-Qi Cheng, Qi Dai, Hong Li, Jingkuan Song et al.CVPR 2022 · 119 citations
- Point-Query Quadtree for Crowd Counting, Localization, and MoreChengxin Liu, Hao Lu, Zhiguo Cao, Tongliang LiuICCV 2023 · 89 citations
- Crowd Counting in the Frequency DomainWeibo Shu, Jia Wan, Kay Chen Tan, Sam Kwong et al.CVPR 2022 · 85 citations
- STEERER: Resolving Scale Variations for Counting and Localization via Selective Inheritance LearningTao Han, Lei Bai, Lingbo Liu, Wanli OuyangICCV 2023 · 74 citations
Builds on8
- Bayesian Loss for Crowd Count Estimation With Point SupervisionZhiheng Ma, Xing Wei, Xiaopeng Hong, Yihong GongICCV 2019 · 612 citations
- Distribution Matching for Crowd CountingBoyu Wang, Huidong Liu, Dimitris Samaras, Minh Hoai NguyenNeurIPS 2020 · 443 citations
- Crowd Counting With Deep Structured Scale Integration NetworkLingbo Liu, Zhilin Qiu, Guanbin Li, Shufan Liu et al.ICCV 2019 · 254 citations
- Multi-Level Bottom-Top and Top-Bottom Feature Fusion for Crowd CountingVishwanath Sindagi, Vishal M. PatelICCV 2019 · 194 citations
- Adaptive Density Map Generation for Crowd CountingJia Wan, Antoni B. ChanICCV 2019 · 171 citations
Related papers
- Learning to Count via Unbalanced Optimal TransportZhiheng Ma, Xing Wei, Xiaopeng Hong, Hui Lin et al.AAAI 2021 · 100 citations
- Optimal Transport Minimization: Crowd Localization on Density Maps for Semi-Supervised CountingWei Lin, Antoni B. ChanCVPR 2023
- Proximal Mapping Loss: Understanding Loss Functions in Crowd Counting & LocalizationWei Lin, Jia Wan, Antoni B. ChanICLR 2025
- 2D Gaussians Spatial Transport for Point-supervised Density RegressionMiao Shang, Xiaopeng HongAAAI 2026
- Modeling Noisy Annotations for Crowd CountingJia Wan, Antoni B. ChanNeurIPS 2020 · 120 citations
