DaRL-LibSignal / LibSignal

107 stars 21 forks source link

Fix agents #29

Closed Red-Pheonix closed 4 months ago

Red-Pheonix commented 4 months ago

Some of the rl agents were not working(frap, mplight, colight, ppo, magd were not working when I tested). I made some adjustmens to make frap, mplight and colight work for now.

For frap and mplight, in newer versions of numpy, there is a deprecation error when using np.int. They now use np.int64 instead. mplight used to give errors when using networks with irregular lane numbers(like cologne3), it now pads its input deal with this problem.

For colight, the graph interface can now load directly from sumo network files. So colight can now directly work with sumo networks without using converters. In addition, like with mplight, it now pads its input to deal with irregular shapes.