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

Minigrid Setup #326

Closed
wants to merge 5 commits into from
Closed

Minigrid Setup #326

wants to merge 5 commits into from

Conversation

mrsamsami
Copy link

No description provided.

Copy link
Collaborator

@dapatil211 dapatil211 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also:

  1. Remove the minigrid folder.
  2. update the minigrid config

@dapatil211
Copy link
Collaborator

This should be merged after #272 , since that has the support for environment wrappers. Once that's there, you should delete the MiniGridEnv class, and just register the minigrid wrappers, with names like 'minigrid.FullyObsWrapper'.

@dapatil211
Copy link
Collaborator

@mrsamsami #272 is now merged, so can you update this PR?

@mrsamsami mrsamsami requested a review from dapatil211 May 2, 2023 18:40
Comment on lines +4 to +10
from minigrid import (
FlatObsWrapper,
FullyObsWrapper,
ImgObsWrapper,
RGBImgObsWrapper,
RGBImgPartialObsWrapper,
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update with changes from dev branch and move these changes to gym/gym_wrappers.py, inside of a try block?
Like:

try:
   importing and registering minigrid wrappers
except:
   ...

Comment on lines +33 to +37
"minigrid.FullyObsWrapper": FullyObsWrapper,
"minigrid.FlatObsWrapper": FlatObsWrapper,
"minigrid.ImgObsWrapper": ImgObsWrapper,
"minigrid.RGBImgObsWrapper": RGBImgObsWrapper,
"minigrid.RGBImgPartialObsWrapper": RGBImgPartialObsWrapper,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be registered as gymwrappers and not environments

@mrsamsami mrsamsami closed this May 29, 2023
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

Successfully merging this pull request may close these issues.

2 participants