-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
[Proposal] Support Stable Baselines? #343
Comments
Currently Minigrid uses Gymnasium rather than Gym, are you using stable baselines 2.0.0alpha1? This adds supports for gymnasium by default. This is probably the cause of the env checker error. @BolunDai0216 I realised that in our readme we include a note about training an agent https://github.com/Farama-Foundation/Minigrid#training-an-agent however this will no longer work as the previous environment uses the gym-minigrid. |
I feel the real work here is in stable baselines using gymnasium rather than gym. Do they plan to transition? (edit: Can't see anything on their roadmap. If enough people want them to use gym rather than gymnasium, it might be worth showing it can be done). |
I am trying to run stable baselines3 with minigrid but I keep on running into errors regrading the structure of the observation space. |
@VineetTambe To use SB3 with Minigrid, you would need to create a custom CNN feature extractor see here for an example. Then, you just need to update the |
Thanks @BolunDai0216! I will try it out! |
I will close this issue since there are no additional comments, please feel free to reopen it if anyone has any related questions. |
Currently, It seems that Minigrid can't work with Stable Baselines3. The state space is in a different format and the env checker produces an error that the environments don't follow the Gym API closely.
It would be nice to provide support for Stable Baselines as they can make Minigrid accessible to even more people.
The text was updated successfully, but these errors were encountered: