MAN-crowd
Crowd counter: VGG-19 features, a transformer encoder with learnable region attention and a density-map decoder.
Detection and tracking · 472 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 40.4M
- Operations
- 472
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2022
- Cited by
- 282 (as of 28 October 2026)
- Authors
- Hui Lin, Zhiheng Ma, Rongrong Ji and others
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18025
- Graph hash
- 5e8829287fe94903f3dfc0442c1984b8e2c0ea4c19e1658761791f2440d5588b
- Skeleton hash
- 96817701d6314eb110c72f8dbbd365ae9e6e5dfb90b8182ee9365106a317db26
- Architecture hash
- 06218153669b498601413e644cc394be48d15863e35c1912b3a4c4388e383480
- Diagram SHA-256
- b41b36dee12e6a9bcb21f41822d5824a5779b3d99f5b3ae5381abefc522f9d9c
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
MAN, the Multifaceted Attention Network, is a crowd counting model that adds local attention to a transformer. The motivation is that scale varies widely within a crowd image, and neither a fixed-size convolution kernel nor the fixed-size attention of vision transformers handles that variation well.
A VGG-19 backbone extracts the image features. They go to a transformer encoder whose attention module combines ordinary global attention with the paper's Learnable Region Attention (LRA), which lets each feature location attend to its own local region. Because LRA is spatially aware, the feature map enters the encoder without position encoding. The paper sets the number of encoder layers to 4. A regression decoder made of an upsampling layer and three convolution layers then predicts the density map.
Two further parts act on training: a Local Attention Regularization supervises LRA, and an Instance Attention Loss constrains the whole network. Against its BL baseline, the paper reports MAE and MSE improvements of 12.9% and 15.1% on UCF-QNRF and 28.8% and 30.0% on JHU-Crowd++. The official repository links trained models for JHU and UCF.
Key idea. MAN combines global attention from a vanilla transformer with learnable local attention and instance attention in one crowd counting model.
- MAN
- MAN-crowd
- Multifaceted Attention Network
- multifaceted attention
- crowd counting
- Learnable Region Attention
- LRA
- density map regression
- crowd density estimation
- instance attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lin2022boostingcrowdcountingmultifaceted,
title={Boosting Crowd Counting via Multifaceted Attention},
author={Hui Lin and Zhiheng Ma and Rongrong Ji and Yaowei Wang and Xiaopeng Hong},
year={2022},
eprint={2203.02636},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2203.02636},
}