Home

Awesome

DCL-CrowdCounting

This is an official implementaion of the paper "Density-aware Curriculum Learning for Crowd Counting", completed in November 2019, accepted by T-CYB in October 2020.

[IEEE link][pdf download]

DCL-Crowd Counting

This repository shows how PSCC is trained with/without DCL strategy. Relevant experiment processes are shown in process_reports.

Requirements

Dara preparation

  1. Download the original ShanghaiTech Dataset [link: Dropbox / BaiduPan]
  2. generate the density maps using the datasets/generate_data.py (using Python 3 because of the f-string) according to the README in datasets.
  3. modify the dataset/SHHA/setting.py th specify the path of dataset.

Training

  1. modify the training parameters in config.py.
    • Without DCL, set __C.DCL_CONF['work'] = False
    • With DCL, set __C.DCL_CONF['work'] = True
  2. python train.py

Experiment Results

PSCCMAEMSE
Random Sampling66.82109.35
Density-aware CL64.97107.96

Citation

If you use the code, please cite the following paper:

@ARTICLE{9275392,
  author={Q. {Wang} and W. {Lin} and J. {Gao} and X. {Li}},
  journal={IEEE Transactions on Cybernetics}, 
  title={Density-Aware Curriculum Learning for Crowd Counting}, 
  year={2020},
  volume={},
  number={},
  pages={1-13},
  doi={10.1109/TCYB.2020.3033428}}