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 the agent using the torch-rl repository #4

Open
MitulMagu opened this issue Mar 25, 2021 · 1 comment
Open

Training the agent using the torch-rl repository #4

MitulMagu opened this issue Mar 25, 2021 · 1 comment

Comments

@MitulMagu
Copy link
Contributor

I am trying to train the agents in the multigrid environment using the torch-rl repository (https://github.com/lcswillems/rl-starter-files) which is compatible with gym-minigrid. After registering the new environment in gym (multigrid-collect-v0) and running the environment using

python3 -m scripts.train --algo ppo --env multigrid-collect-v0

I am receiving the following runtime error: RuntimeError: Expected 4-dimensional input for 4-dimensional weight [16, 3, 2, 2], but got 5-dimensional input of size [16, 3, 5, 3, 6] instead

Is there a way to make it compatible with the torch-rl repository or am I making a mistake somewhere? Any help would be much appreciated, thanks!

@bborj
Copy link

bborj commented Feb 20, 2023

Were you able to fix the problem?

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

2 participants