Coarse- and Fine-grained Attention Network with Background-aware Loss for Crowd Density Map Estimation

Liangzi Rong, Chunping Li
11/7/2020
cs.CVcs.AI
transformer-attention

Official code: rongliangzi/MARUNet (38 stars, Python, PyTorch, last commit 2021-03-31).

Abstract

In this paper, we present a novel method Coarse- and Fine-grained Attention Network (CFANet) for generating high-quality crowd density maps and people count estimation by incorporating attention maps to better focus on the crowd area. We devise a from-coarse-to-fine progressive attention mechanism by integrating Crowd Region Recognizer (CRR) and Density Level Estimator (DLE) branch, which can suppress the influence of irrelevant background and assign attention weights according to the crowd density levels, because generating accurate fine-grained attention maps directly is normally difficult.

Show full abstract

We also employ a multi-level supervision mechanism to assist the backpropagation of gradient and reduce overfitting. Besides, we propose a Background-aware Structural Loss (BSL) to reduce the false recognition ratio while improving the structural similarity to groundtruth. Extensive experiments on commonly used datasets show that our method can not only outperform previous state-of-the-art methods in terms of count accuracy but also improve the image quality of density maps as well as reduce the false recognition ratio.

View on arXivView PDF

Code Implementations(1)

PyTorch

Multi-level Attention Refined UNet for crowd counting

386PythonJun 12, 20205 years ago
cnncrowd-countingcrowdcountingpytorch

Similar Papers

Cite this paper

@article{rong2020coarse,
  title  = {Coarse- and Fine-grained Attention Network with Background-aware Loss for Crowd Density Map Estimation},
  author = {Liangzi Rong and Chunping Li},
  year   = {2020},
  eprint = {2011.03721},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.03721}
}

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

Discussion