CrowdNav icon indicating copy to clipboard operation
CrowdNav copied to clipboard

training problem

Open naiyisiji opened this issue 2 years ago • 4 comments

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

naiyisiji avatar Oct 07 '21 11:10 naiyisiji

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.

HyeongYeolRyu avatar Oct 12 '21 13:10 HyeongYeolRyu

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

chenzhutian avatar Jan 10 '22 22:01 chenzhutian

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

Ahyuan233 avatar May 29 '22 05:05 Ahyuan233

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.

Tianci-Wen avatar Jun 02 '22 03:06 Tianci-Wen