DMCount
Crowd counting network trained to match its density map to dot annotations with optimal transport.
Detection and tracking · 50 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
- 21.5M
- Operations
- 50
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2020
- Cited by
- 255 (as of 28 October 2026)
- Authors
- Boyu Wang, Huidong Liu, Dimitris Samaras, Minh Hoai
- 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
- m15688
- Graph hash
- 6a6012a8e59e9c0089b07b8f534c455731340f6fb25960586685c7a835d985f2
- Skeleton hash
- 09270f14bf619e9671e690bfba53dcbde5c10c1268291ecda417a39248320eb7
- Architecture hash
- 2107adf36008c72d727f4cb6d174c8ba3e532342db263235dd381f3cd16808a8
- Diagram SHA-256
- 7b72507036aa4e869662cf18650ee06eadeded37b191da07a4dfc338ae07a34a
- 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
DM-Count is a method for training a crowd counting network, and its name stands for Distribution Matching for crowd COUNTing. A network for crowd counting takes an image and outputs a map of density values, and the count is obtained by summing over the predicted density map. In the training data each person is annotated by a dot, and earlier methods smooth each dot with a Gaussian; the paper shows that imposing Gaussians on the annotations hurts generalization performance.
DM-Count does not need any Gaussian smoothing of the ground truth annotations. Its loss has three terms: the counting loss, the OT loss and the Total Variation (TV) loss. The counting loss is the absolute difference between the ground truth and predicted counts. The OT loss uses Optimal Transport to measure the similarity between the normalized predicted density map and the normalized ground truth density map, and the TV loss is included to stabilize the OT computation.
The method is agnostic to the network architecture, and the paper's experiments use the same network as the Bayesian loss paper. On the NWPU test set, the paper reports that DM-Count reduces the MAE from 105.4 to 88.4.
Key idea. DM-Count trains a crowd counting network by matching normalized predicted and ground truth density maps with Optimal Transport, without Gaussian smoothing of the dot annotations.
- DM-Count
- DMCount
- Distribution Matching for Crowd Counting
- crowd counting
- density map estimation
- optimal transport loss
- total variation loss
- dot annotation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2020distributionmatchingcrowdcounting,
title={Distribution Matching for Crowd Counting},
author={Boyu Wang and Huidong Liu and Dimitris Samaras and Minh Hoai},
year={2020},
eprint={2009.13077},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2009.13077},
}