Pi-Star-Lab / RESCO

Reinforcement Learning Benchmarks for Traffic Signal Control (RESCO)
116 stars 36 forks source link

key error when running python main.py --agent IDQN --map ingolstadt21 #23

Closed FanFan2021 closed 8 months ago

FanFan2021 commented 9 months ago

always get key error like:

File "/resco_benchmark/agents/agent.py", line 35, in observe if info['eps'] % self.config['save_freq'] == 0: KeyError: 'save_freq'

File "/resco_benchmark/agents/pfrl_dqn.py", line 43, in observe if self.config['load']: KeyError: 'load'

How to fix this kind of problem?

jault commented 8 months ago

Sorry, this should be fixed now. A commit was missing when the library was updated.

https://github.com/Pi-Star-Lab/RESCO/commit/567cece6d0694c1c16b2687df445e02860fb0e9e