The project provides official implementation of MvCHM in ACCV'24. The paper introduces a multiview pedestrian detection method using "cardboard human modeling," which aggregates 3D point clouds from multiple camera views. This approach improves accuracy by considering human appearance and height, reducing projection errors compared to traditional 2D methods.
- Inference and Training Codes
- Pretrained Models
- Supplementary dataset Wildtrack+ and MultiviewX+
This project is tested to run on environment with:
- CUDA > 11
- torchvision 0.11.3
- Windowns 10/11, Ubuntu 20.04
- Create a new conda environment named
mvchm
to run this project:
conda create -n mvchm python=3.9.7
conda activate mvchm
- Make sure your system meet the CUDA requirements and install some core packages:
pip install easydict torch==1.12.1+cu113 torchvision==0.13.1+cu113 tqdm scipy opencv-python
- Clone this repository:
cd Your-Project-Folder
gir clone git@github.com:Jiahao-Ma/MvCHM.git
- Download the pretrained checkpoint.
- Download the standing point detection model checkpoint
mspn_mx.pth
andmspn_wt.pth
from here and put them in\model\refine\checkpoint
. - Download the human detection model checkpoint
rcnn_mxp.pth
andrcnn_wtp.pth
from here and put them in\model\detector\checkpoint
.
Quick start for the project
- Download the pre-trained checkpoint
Wildtrack.pth
from here and put them in\checkpoints
. - Inference.
python inference.py --dataname Wildtrack --data_root /path/to/Wildtrack
Train on Wildtrack dataset. Specify the path to Wildtrack dataset.
python train.py --dataname Wildtrack --data_root /path/to/Wildtrack
Train on MultiviewX dataset. Specify the path to MultiviewX dataset.
python train.py --dataname MultiviewX --data_root /path/to/MultiviewX
Evaluate on the trained model.
# Example: --cfg_file: experiments\2022-10-23_19-53-52_wt\MvDDE.yaml
python evaluate.py --dataname Wildtrack --data_root /path/to/Wildtrack --cfg_file /path/to/cfg_file
We provide the supplementary datasets Wildtrack+ and MultiviewX+, which include additional annotations for pedestrians located outside the predefined ground plane. You can download the dataset here.