DongChen06 / MARL_CAVs

MARL for Autonomous Vehicles
253 stars 47 forks source link

Error when trying to run code #47

Closed onkarrai06 closed 1 month ago

onkarrai06 commented 4 months ago

Greetings,

I hope you are doing well and I want to say props for the great work. I am writing to ask a question about the code which I can not seem to get running. Upon running the code in my conda environment, I got this error (when trying to run ma2c.py):

I inspected the code and found out that this is where the error is:

image

I believe the action_mask should be a numpy array and I don't understand why the error occurs. I have been debugging the code but to no avail. Can you let me know if this is an issue on my end because I have been trying to run it countlessly for hours.

These are the dependencies I got on my conda environment:

image image

I would appreciate any insight, thank you.

DongChen06 commented 4 months ago

Hi, thanks for your interest. You can find the issues and solutions in the closed issues

onkarrai06 commented 4 months ago

Hi, thanks for your interest. You can find the issues and solutions in the closed issues

I found this issue, however, this led to another error. @DongChen06

image

DongChen06 commented 4 months ago

Hi you can also find the solutions in the closed issues. Thanks

onkarrai06 commented 4 months ago

Hi you can also find the solutions in the closed issues. Thanks

Thanks for the prompt responses. I changed the utils.py code, but now when I try to run mappo.py it is stuck, is this what is supposed to happen or is there an issue? @DongChen06

image

onkarrai06 commented 4 months ago

Also, is there any way I can run this on my GPU instead? The training seems extremely slow on my CPU which is Ryzen 7 6800H.

@DongChen06