The repository contains the source code and pred-trained models of our paper: GSC: A Graph and Spatio-temporal Continuity Based Framework for Accident Anticipation
The overview of the network is showed below;
- Python 3.6
- Pytorch 1.7.0
- Pytorch-Lightning 0.9.0
- Other required packages in
requirements.txt
conda create -n sspm python=3.6
source activate sspm
pip install -r requirements.txt
-
Access the datasets by BaiduYun[Passwards:
qo81
], and unzip it. -
Change the
data_root
ofconfigs/config.py
to your unzip path;
- Run the following command in Terminal:
python run.py --train ./configs/config.py
-
Change the
test_checkpoint
ofconfigs/config.py
to your model -
Run the following command in Terminal
python run.py --test ./configs/config.py