Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

training problem #45

Open
naiyisiji opened this issue Oct 7, 2021 · 4 comments
Open

training problem #45

naiyisiji opened this issue Oct 7, 2021 · 4 comments

Comments

@naiyisiji
Copy link

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
Copy link

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
Copy link

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

@Ahyuan233
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants