conda env create -f environment.yaml
conda activate tameconda create -n tame python=3.10
conda activate tame
pip install -r requirements.txtDownload the NGSIM US-101 and I-80 dataset from here and highD dataset from here. Then use preprocess_*.m in the data folder to preprocess the dataset.
data
├── ngsimdata
│ ├── TrainSet.mat
│ ├── TestSet.mat
│ ├── ValSet.mat
├── highDdata
│ ├── TrainSet.mat
│ ├── TestSet.mat
│ ├── ValSet.mat
cd method
bash train.sh # train the model in DDP mode
# or
python train.py # train the model in single GPU modecd method
python evaluate.py If you find this work useful, please consider citing (coming soon):
@article{jiang2024hybrid,
title={Hybrid Attention-based Multi-task Vehicle Motion Prediction Using Non-Autoregressive Transformer and Mixture of Experts},
author={Jiang, Hao and Hu, Chuan and Niu, Yixun and Yang, Biao and Chen, Hao and Zhang, Xi},
journal={IEEE Transactions on Intelligent Vehicles},
year={2024},
publisher={IEEE}
}
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.