ClimbingMachine / deep-reinforcement-learning-pedestrian-signal-design

This study is to investigate the optimal control strategies at crosswalks using traffic signal controllers. A multi-agent reinforcement learning framework will be proposed as the “smart” control strategy, and several experiments will be conducted using microsimulation. The proposed multi-agent reinforcement learning framework is aimed to (1) find the optimal control policy that minimizes the number of conflicts (safety) while reducing traffic delay (efficiency), (2) account for different scheduling scenarios with various combinations of pedestrian flow rates and vehicle flow rates, and (3) make comparisons with baseline traditional traffic signal controllers and semi-controlled strategy.
11 stars 1 forks source link

Troubles with DeepQLearning #1

Closed TrinhTuanHung2021 closed 1 year ago

TrinhTuanHung2021 commented 2 years ago

Hello Thank you for sharing your code.

I could run two models with fixed time and pedestrian

But I had errors when running training_main.py in DEEPQLEARNING.

----- Episode 1 of 200 Traceback (most recent call last): File "/home/osboxes/anaconda3/envs/Hung/lib/python3.7/site-packages/sumolib/net/init.py", line 831, in readNet parse(gzip.open(filename), netreader) File "/home/osboxes/anaconda3/envs/Hung/lib/python3.7/gzip.py", line 58, in open binary_file = GzipFile(filename, gz_mode, compresslevel) File "/home/osboxes/anaconda3/envs/Hung/lib/python3.7/gzip.py", line 168, in init fileobj = self.myfileobj = builtins.open(filename, mode or 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'intersection\pedcrossing.net.xml'

I tried to modify in generator.py but I can not run your models

TrinhTuanHung2021 commented 2 years ago

I modify your file and i can run your model

change intersection to Intersection in utils.py change \\ to / in generator.py

ClimbingMachine commented 2 years ago

I modify your file and i can run your model

change intersection to Intersection in utils.py change \ to / in generator.py

Thank you for pointing this out. I ran the code locally before and forgot to change the name of the directory. Glad it works now, and let me know if I can help with anything.

ClimbingMachine commented 1 year ago

Have been updated based on @TrinhTuanHung2021 comments. Closed for inactivity.