vita-epfl / CrowdNav

[ICRA19] Crowd-aware Robot Navigation with Attention-based Deep Reinforcement Learning
MIT License
585 stars 169 forks source link

training problem #45

Open naiyisiji opened 2 years ago

naiyisiji commented 2 years ago

sorry to bother you. Do you know how to deal with this error?

Traceback (most recent call last): File "/home/naiyisiji/Projects/CrowdNav/crowd_nav/train.py", line 177, in main() File "/home/naiyisiji/Projects/CrowdNav/crowd_nav/train.py", line 129, in main explorer.run_k_episodes(il_episodes, 'train', update_memory=True, imitation_learning=True) File "/home/naiyisiji/Projects/CrowdNav/crowd_nav/utils/explorer.py", line 36, in run_k_episodes ob = self.env.reset(phase) TypeError: reset() takes 1 positional argument but 2 were given

HyeongYeolRyu commented 2 years ago

Hi @naiyisiji, I'm not the author, but I had encountered the same issue and could solve it by degrading the gym version. I saw gym==0.21.0 or the recent version raised the error, and then I degraded it to the older version, gym==0.10.0, in my case. I think this error seems to be raised due to the change of the gym library.

chenzhutian commented 2 years ago

Wondering what if I want to use the gym with the latest's version

Ahyuan233 commented 2 years ago

Hi @naiyisiji, I'm not the author, but I had encountered the same issue and could solve it by degrading the gym version. I saw gym==0.21.0 or the recent version raised the error, and then I degraded it to the older version, gym==0.10.0, in my case. I think this error seems to be raised due to the change of the gym library.

You saved my day

Tianci-Wen commented 2 years ago

Hi @naiyisiji, I'm not the author, but I had encountered the same issue and could solve it by degrading the gym version. I saw gym==0.21.0 or the recent version raised the error, and then I degraded it to the older version, gym==0.10.0, in my case. I think this error seems to be raised due to the change of the gym library.

Thank you very much! This is the correct solution.