mmPred is a radar-based human motion prediction framework. This README provides instructions for data preparation, environment setup, and running the two-stage pipeline.
- Download the mmFi dataset from this link.
- Extract the contents so that the folder structure is:
./data/ └── data_mmfi/ └── stage_1_process/ (files...) (files...) - Download two checkpoints from this link.
- Place the checkpoints in the
./ckptdirectory.
The code has been developed and tested with the following environment:
- Python 3.8.2
- PyTorch 1.8.1
- CUDA 11.6
To install the required dependencies, run:
pip install -r requirements.txtTrain and test the FDM model:
python main_mmwave.py --mode train_mmfi --train_stage 1
python main_mmwave.py --mode test_mmfi --train_stage 1Train and test the diffusion-based model:
python main_mmwave.py --mode train_mmfi --train_stage 2
python main_mmwave.py --mode test_mmfi --train_stage 2- Inference quantitative results are saved in
./inference/test_mmfi_exp_0/results/stats.csv. ADE10 and FDE10 are the ADE and FDE for the predicted 10 frames. ADEs_ are the score for each sub-actions. - Visualizations can be found in the
test_vis_mmfidirectory.