Skip to content

svip-lab/RGBD-Counting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGBD crowd counting

PyTorch implementation of our CVPR2019 paper:

Density Map Regression Guided Detection Network for RGB-D Crowd Counting and Localization [paper] [poster]

TPAMI2021 version:

Locating and Counting Heads in Crowds With a Depth Prior [Paper] [ShanghaitechRGBDSyn] [Depth Completion]

Requirements

  • python: 3.x
  • Pytorch: 1.1+
  • mmdetection: 1.0

The ShanghaiTechRGBD dataset

Download our ShanghaiTechRGBD dataset: OneDrive

ShanghaiTechRGBD/
├── train_data/
    ├── train_img/*.png
    ├── train_depth/*.mat
    └── train_gt/*.mat
└── test_data/
    ├── test_img/*.png
    ├── test_depth/*.mat
    └── test_bbox_anno/*.mat

Some explanations of data preprocessing:

The metric of depth is millimeter. The max covered depth value of depth sensor is 20 meters, which means the normal range of depth value should be 0-20,000. -999 means the depth value at this point is out of range. Only a few points are above 20,000 in an depth image, which can be the inherent problem of depth sensor resulted from occlusion or illumination, etc. Therefore, we cut off [0, 20,000] for the whole depth image as the valid depth value and set values at other pixels as 30,000. It is an empirical setting through the observing for image. After that, we normalize the depth image through dividing 20,000.

Usage

bash train.sh
bash eval.sh

Citation

@article{lian2021locating,
  title={Locating and Counting Heads in Crowds With a Depth Prior},
  author={Lian, Dongze and Chen, Xianing and Li, Jing and Luo, Weixin and Gao, Shenghua},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2021},
  publisher={IEEE}
}

@InProceedings{Lian_2019_CVPR,
author = {Lian, Dongze and Li, Jing and Zheng, Jia and Luo, Weixin and Gao, Shenghua},
title = {Density Map Regression Guided Detection Network for RGB-D Crowd Counting and Localization},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2019}
}

Releases

No releases published

Packages

No packages published