Skip to content

etri-city-traffic-brain/congestion-propagation-prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Traffic Congestion Propagation Prediction

Predicting Congestion Propagation Based on Traffic Prediction Algorithms

An implementation of existing DCRNN, STGCN, MW-TGC algorithm utilizing dgl and Pytorch.

Getting started

It will be upload requirements.txt file later.

Clone repo and install requirements.txt

git clone https://github.com/~~
cd traffic_forecasting
pip install -r requirements.txt

How to run the code

  • preprocessing We have datasets of front, doan, dunsan, and wolpyeong.
  1. ts_202107-09 file to csv file.
python ts_to_csv.py --dir tsFolderDirectory #ts folder directory
  1. Make the necessary input files in STGCM, and MW-TGC.
python preprocessing.py --loc front # run front
  1. Make the necessary input files in DCRNN.
python preprocessing.py --loc front # run front
			--output_dir dataset/ #Output directory
  • Usage

    • DCRNN
     python train.py --loc front # run front
    • STGCN
     python main_tmap.py --loc front # run front
    • MW-TGC
     python main.py --loc front # run front

About

Repository for Predicting Traffic Congestion

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages