Home

Awesome

NWPU-Crowd-Sample-Code-for-Localization


This repo is the official crowd localization implementation of paper: NWPU-Crowd: A Large-Scale Benchmark for Crowd Counting and Localization. The code is developed based on C^3 Framework.

Getting Started

Preparation

Training

Testing

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

Evaluation and Visualization

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

Pre-trained Models

We provide the pre-trained models in this link.

Performance on the validation set

The overall results on val set:

MethodF1_mPreRec
RAZ_loc[1]62.569.256.9

About the leaderboard on the test set, please visit Crowd benchmark.

References

  1. Recurrent Attentive Zooming for Joint Crowd Counting and Precise Localization, CPVR, 2019.

Evaluation Scheme

The Evaluation Python Code of the crowdbenchmark.com is shown in ./eval/eval.py.

Citation

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

@article{gao2020nwpu,
  title={NWPU-Crowd: A Large-Scale Benchmark for Crowd Counting and Localization},
  author={Wang, Qi and Gao, Junyu and Lin, Wei and Li, Xuelong},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  doi={10.1109/TPAMI.2020.3013269},
  year={2020}
}

Our code borrows a lot from the C^3 Framework, you may cite:

@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}
}

If you use crowd counting models in this repo (RAZ_loc), please cite them.