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

Saving and restoring states #95

Closed
hfeniser opened this issue May 28, 2020 · 1 comment
Closed

Saving and restoring states #95

hfeniser opened this issue May 28, 2020 · 1 comment
Labels

Comments

@hfeniser
Copy link

hfeniser commented May 28, 2020

Does this environment support saving and restoring states?

For example, I want to save an exact map state in MiniGrid-Dynamic-Obstacles-5x5-v0 at some point and later I should be able to make the agent start from the saved state.

Gym's Atari environment has such a functionality: openai/gym#402 (comment)

@maximecb
Copy link
Contributor

Provided that you haven't opened a window to do human rendering, you should be able to pickle and unpickle environments directly with Python's pickle module.

Let me know if that doesn't work correctly.

@maximecb maximecb closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants