All models

MCNN

A three-column CNN that maps a crowd photo to a density map whose integral gives the head count.

Detection and tracking · 33 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (47 KB)

Open in a new tab

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
128K
Operations
33
Framework
PyTorch
Recurrent
No
Published
CVPR 2016
Cited by
2,352 (as of 25 October 2026)
Authors
Yingying Zhang, Desen Zhou, Siqin Chen 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 diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18057
Graph hash
79730589bf5ba9afd6e7bf818349fa55a4ea90dd38f5616e1e6b37b14f02eb56
Skeleton hash
163c0d39a918441899716f3c6f4b2dae62c21056575e77ac1cb9248412cb1f4e
Architecture hash
55d26c87c90304f3956f0dca05f6f3cff46ef7250b9fb8ac7e854c812b9826ba
Diagram SHA-256
3b4c302f08fc43664598e0bbecc72f8bf32610c2ca5879160a30666dffd2e13a
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

MCNN, the Multi-column Convolutional Neural Network, estimates how many people are in a single photograph of a crowd. It takes the image as input and outputs a crowd density map, and the integral of that map gives the overall count.

The network has three columns of convolutional layers whose filters have different sizes. The columns correspond to large, medium and small receptive fields, so that the learned features adapt to the large variation in head size. Their outputs are combined by 1 × 1 filters with learnable weights, where the earlier multi-column networks that motivated the design simply averaged them. Because a 1 × 1 convolution layer replaces the fully connected layer, the input image can be of arbitrary size.

To build training targets, the paper convolves the head labels with geometry-adaptive kernels, density kernels that adapt to the local geometry around each labeled point. It also introduces the Shanghaitech dataset of nearly 1,200 images with around 330,000 labeled heads. This model comes from an unofficial implementation of the CVPR 2016 paper. Its authors note that their ground truth density maps are obtained using simple Gaussian maps, unlike the original method described in the paper.

Key idea. The paper proposes a three-column CNN with different filter sizes that maps a crowd image of arbitrary size to a density map, and introduces the Shanghaitech dataset.

  • MCNN
  • Multi-column Convolutional Neural Network
  • multi-column CNN
  • crowd counting
  • single-image crowd counting
  • crowd density map
  • density map estimation
  • Shanghaitech dataset

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@inproceedings{Zhang_2016, title={Single-Image Crowd Counting via Multi-Column Convolutional Neural Network}, url={http://dx.doi.org/10.1109/CVPR.2016.70}, DOI={10.1109/cvpr.2016.70}, booktitle={2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, publisher={IEEE}, author={Zhang, Yingying and Zhou, Desen and Chen, Siqin and Gao, Shenghua and Ma, Yi}, year={2016}, month=June, pages={589–597} }