Home

Awesome

MobileCount: An efficient encoder-decoder framework for real-time crowd counting


This repo is the official implementation of paper: "MobileCount: An efficient encoder-decoder framework for real-time crowd counting."

The code is developed based on C^3 Framework.

Features

Performance

Due to limited spare time and the number of GPUs, I do not plan to conduct some experiments (named as "TBD"). If you are interested in the project, you are welcomed to submit your own experimental parameters and results. GCC(rd,cc,cl) stand for GCC dataset using random/cross-camera/cross-location/ splitting, respectively.

MethodUCF-QNRFSHT ASHT BWEUCF50
MobileCount131.1/222.689.4/146.09.0/15.411.1284.8/293.8
MobileCount (x1.25)124.5/207.682.9/137.98.2/13.211.1283.1/382.6
MobileCount (x2)117.9/207.581.4/133.38.1/12.711.5284.5/421.2

data processing code

Getting Started

Preparation

Training

Testing

We only provide an example to test the model on the test set. You may need to modify it to test your own models.

Tips

In this code, the validation is directly on the test set. Strictly speaking, it should be evaluated on the val set (randomly selected from the training set, which is adopted in the paper). Here, for a comparable reproduction (namely fixed splitting sets), this code directly adopts the test set for validation, which causes that the results of this code are better than that of our paper. If you use this repo for academic research, you need to select 10% training data (or other value) as validation set.

Citation

If you find this project is useful for your research, please cite:

@article{wang2020mobilecount,
  title={MobileCount: An efficient encoder-decoder framework for real-time crowd counting},
  author={Wang, Peng and Gao, Chenyu and Wang, Yang and Li, Hui and Gao, Ye},
  journal={Neurocomputing},
  volume={407},
  pages={292--299},
  year={2020},
  publisher={Elsevier}
}
@article{gao2019c,
  title={C$^3$ Framework: An Open-source PyTorch Code for Crowd Counting},
  author={Gao, Junyu and Lin, Wei and Zhao, Bin and Wang, Dong and Gao, Chenyu and Wen, Jun},
  journal={arXiv preprint arXiv:1907.02724},
  year={2019}
}