All models

LSC-CNN Crowd Counting

A crowd counter that detects and boxes every head at four resolutions, where most counters regress a density map.

Detection and tracking · 120 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 (8 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
35.1M
Operations
120
Framework
PyTorch
Recurrent
No
Published
IEEE TPAMI (arXiv 2019)
Cited by
240 (as of 29 October 2026)
Authors
Deepak Babu Sam, Skand Vishwanath Peri, Mukuntha Narayanan Sundararaman 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
m17816
Graph hash
45c7071cc50a3a59263e7a6949cda03def5bda4b6c02c9e2adfdabcf222e6d3e
Skeleton hash
1a852b5cb879982fff75db5001a3f9a1f215115636d777a1ff6b7a988dc1a782
Architecture hash
fce3ba9025e14fb2eda9fbbe22e58496ccbff7dcc8ac243dc0ce2af6ebfe42fe
Diagram SHA-256
49fd8373e8a2e70509d6f468e0fb6bd5716ce34a60e10825bb0b4487d27867e6
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

LSC-CNN counts the people in a dense crowd by detecting each one, where most counting models regress a density map. The name follows the three steps: locate every person, size each head with a bounding box, then count.

The feature extractor is a modified VGG-16 whose duplicated blocks give feature maps at one-half, one-fourth, one-eighth and one-sixteenth of the input resolution. Each scale branch has its own Top-down Feature Modulator, which acts as the person detector at that scale and also receives features from every lower-resolution branch. The paper adds these connections because the high-resolution maps alone have too little context to tell people from similar patterns. Boxes are not regressed: every pixel is classified as background or as one of a fixed set of box sizes, typically three per scale and 12 in all.

Training needs only a point annotation on each head, from which approximate box sizes are estimated. A winner-take-all loss restricts gradient updates to the spatial region with the highest loss. In one example image of 1151 people, the paper shows a face detector trained with box annotations capturing 731 and LSC-CNN detecting 999.

Key idea. LSC-CNN replaces density regression with dense detection for crowd counting, locating and sizing every head with a multi-column network trained from point annotations alone.

  • LSC-CNN
  • Locate, Size and Count
  • crowd counting
  • dense crowd detection
  • head detection
  • crowd localization
  • point annotation
  • top-down feature modulator

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

Cite the paper

@misc{sam2020locatesizecountaccurately,
      title={Locate, Size and Count: Accurately Resolving People in Dense Crowds via Detection}, 
      author={Deepak Babu Sam and Skand Vishwanath Peri and Mukuntha Narayanan Sundararaman and Amogh Kamath and R. Venkatesh Babu},
      year={2020},
      eprint={1906.07538},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1906.07538}, 
}