SkillAgentSearch skills...

Libranet

(ECCV'20) Weighing Counts: Sequential Crowd Counting by Reinforcement Learning

Install / Use

/learn @poppinace/Libranet
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

LibraNet

weighing_counts

This repository includes the official implementation of LibraNet for crowd counting, presented in our paper:

Weighing Counts: Sequential Crowd Counting by Reinforcement Learning

Proc. European Conference on Computer Vision (ECCV), 2020

Liang Liu<sup>1,†</sup>, Hao Lu<sup>2,†</sup>, Hongwei Zou<sup>1</sup>, Haipeng Xiong<sup>1</sup>, Zhiguo Cao<sup>1</sup>, Chunhua Shen<sup>1</sup>

<sup>1</sup>Huazhong University of Science and Technology

<sup>2</sup>The University of Adelaide, Australia

<sup></sup> equal contribution

Model Structure

<p align="left"> <img src="overview.png" width="850" title="Example"/> </p>

Installation

The code has been tested on Python 3.7.6 and PyTorch 1.4.0. Please follow the official instructions to configure your environment. See other required packages in requirements.txt.

Data Structure

$./data/
├──── Train
├──── Test

Training

  • Download the VGG16 backbone pretrained on SHT Part_A from [BaiduYun (56.1 MB) (code: 3cfp) or OneDrive (57.5 MB)](https://1drv.ms/u/s!AkNf_IPSDakh8jLP6doilJNgdr4g?e=JcgOMV).

  • Move the backbone model into the folder, and the path structure should like this::

$./backbone.pth.tar

Train LibraNet on SHT Part_A Dataset

python train.py

Inference

Pre-trained Model on SHT Part_A dataset

  • Download the model from: [BaiduYun (68.3 MB) (code: 20um) or OneDrive (70 MB)](https://1drv.ms/u/s!AkNf_IPSDakh8XBVTepnGq2J_YjN?e=lJCCUw)
  • The result of this model is: mae=55.5, mse=93.9. However, if the pythorch version is less than 1.4.0 (1.3.1 for example), the result might be: mae=56.3 , mse=95.2. Now I try to find the reason.
  • Move the model into the folder, and the path structure should like this:
$./trained_model/
├──── LibraNet_SHT_A.pth.tar

Evaluation

python Test_SHT_A.py

Citation

If you find this work or code useful for your research, please cite:

@article{liu2020WeighingCounts,
  title={Weighing Counts: Sequential Crowd Counting by Reinforcement Learning},
  author={Liu, Liang and Lu, Hao and Zou, Hongwei and Xiong, Haipeng and Cao, Zhiguo and Chun, Huashen},
  journal={Proc. Eur. Conf. Computer Vision},
  year={2020}
}

Update

2020-9-24

  1. Fix a bug in train_test.py line 32
  • Error:
for image_index in range(0, 1):
  • Correct:
for image_index in range(0, train_number):
  1. Add LICENSE.md

Permission

The code are only for non-commercial purposes. Copyrights reserved.

Contact: Liang Liu (wings@hust.edu.cn) Hao Lu (poppinace@foxmail.com)

Related Skills

View on GitHub
GitHub Stars25
CategoryEducation
Updated1y ago
Forks10

Languages

Python

Security Score

60/100

Audited on Apr 22, 2024

No findings