-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[RLlib] Basic PPO script throws obscure error when building RLModule #51333
Comments
Found out that this won't happen for Cartpole, but for Pong. |
as someone who also ran into this, I have a guess your pong environment returns a complex observation space such as a dict, and you didn't add the flatten observation connector |
ok I checked and turns out it is a box obs space but multi dimensional depending what mode you are in. Im thinking tune/rllib is failing to automatically determine what connector to use for anything other than a 1d box/discrete my env had a dict obs space and had the exact same error |
Just returning to this.
The error occurs because I'm not using the atari wrapper. |
Therefore, the following script runs fine:
|
I've opened a PR to quickly check if we can resolve this easily |
What happened + What you expected to happen
Using the repro script below, I get the following error:
Versions / Dependencies
Tested on 2.42.1 and 2.43.0
Reproduction script
Issue Severity
None
The text was updated successfully, but these errors were encountered: