All models

LibraNet

Crowd counter that reaches its count through a sequence of reinforcement-learned decisions, like weighing on a scale.

Detection and tracking · 318 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 (111 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
17.9M
Operations
318
Framework
PyTorch
Recurrent
Yes
Published
ECCV 2020
Cited by
92 (as of 30 October 2026)
Authors
Liang Liu, Hao Lu, Hongwei Zou and others
License
BSD-2-Clause
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
m17926
Graph hash
b900e16ba026551318a596839b82e44d228d3ecdc2a74a5a62dea7bf59762155
Skeleton hash
57b51e54bbf6f43b6dd667674e385a578eea0b5f11b2ea7275b5c9a109ff4aad
Architecture hash
a21a7dbfda99289fa4ce07e8a4a8cba80bbfe232b82b07023f9128f8a853c648
Diagram SHA-256
9a1410e37ab9607284f76bb101d06dcb895244af4ca5d2c25fd48b5e59badaba
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

LibraNet counts the people in a crowd image through a sequence of small decisions instead of producing the count in one step. The paper formulates counting as a sequential decision problem and solves it with deep reinforcement learning. It models the process on weighing with a scale, with the count value treated as a weight.

The crowd image is virtually placed on one side of the scale, and LibraNet, the agent, learns to place weights on the other side until they match the crowd count. At each step it chooses one weight, an action, from a pre-defined action pool the paper calls the weight box, based on the current image features and the weights already on the pan. The Q values act as the needle of the scale: LibraNet learns to balance the scale from their feedback. The authors visualize the decision process to show how LibraNet chooses actions.

The paper also reports cross-dataset generalization. The official code trains on ShanghaiTech Part_A with a VGG16 backbone pretrained on that dataset, and its README gives the released model's result there as mae=55.5, mse=93.9.

Key idea. LibraNet treats crowd counting as a sequential decision problem in which a reinforcement learning agent places weights on a virtual scale until they match the count.

  • LibraNet
  • crowd counting
  • weighing counts
  • sequential crowd counting
  • reinforcement learning counting
  • counting scale
  • ShanghaiTech Part A

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

Cite the paper

@misc{liu2020weighingcountssequentialcrowd,
      title={Weighing Counts: Sequential Crowd Counting by Reinforcement Learning}, 
      author={Liang Liu and Hao Lu and Hongwei Zou and Haipeng Xiong and Zhiguo Cao and Chunhua Shen},
      year={2020},
      eprint={2007.08260},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2007.08260}, 
}