hey all..! this repo is all about optimizing the traffic flow by ppo(an policy based method) escpecially in the peek hours of the day.. main features:
- single agent based (upon using multiple instances in the scenario you can observe the green wave optimization).
- prioritizing the emergency vechiles.
- Dynamic lane-shifiting and collision based rerouting protocols.
here's how you can see it work on your system.
- Download sumo(traffic simulator).
- clone this repo.
- you'll find the scenario
- download vunarabalities :
- pytorch
- stable Baselines3(SB3[extra])
- open-ai's gym env
- traci(important api to interact with sumo env)
- torch torchvision torchaudio
- use cuda for better performance upon cpu
- only for colab users
- it uses cloud resources by default so u need to switch for the connecting to local runtime ..
- here's how u can
- open via chrome (less security)
- run the command(in the anaconda prompt): jupyter notebook ^--NotebookApp.allow_origin='https://colab.research.google.com' ^--port=8888 ^--NotebookApp.port_retries=0
- upon observation u can see the token something looks like example(format) -http://localhost:8888/tree?token=ec441ae3d2798c9a4c209ff8ebd3a8326eaff2ecd7093abf
- now your are ready to run the ipynb scripts