-
Notifications
You must be signed in to change notification settings - Fork 16
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
Refactor and Upgrade to Gymnasium #75
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In prevous gym versions executing a step returned obs, reward, done, info = env.step(...) With the switch to gymnasium this has changed to obs, reward, terminated, truncated, info = env.step(...) We also made the code a bit more self explainatory.
pip install .[all] will no longer install components only required for testing pip install .[testing] will also install all compionents required to run all tests
(e.g. 'dmc:...' by shimmy)
…den access private attribute.
Gymnasium Mujoco Envs no longer allow overriding the used xml_file We therefore implement intermediate classes, that reimplement this feature.
(Thanks to ChatGPT for helping)
ottofabian
requested changes
Oct 11, 2023
libs (like atari envs added by shimmy), only those included in gym and those added by us.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR upgrades fancy_gym from gym to gymnasium and refactors some parts.
This PR replaces #68 and should be merged instead.
Gymnasium is a fork of OpenAIs Gym (v21) by the Farama Foundation, since the original is no longer maintained.
fancy_gym previously used gym v25, the upgrade to Gymnasium v26 brought some breaking changes.
Our new fancy registry allows direct integration into gymnasium's env management;
fancy_gym.make
is no longer required andgym.make
can be used for all our environments and mp-variants instead:E.g.
gym.make(fancy/Reacher5d-v0)
orgym.make(fancy_ProDMP/Reacher5d-v0)
.We also make all metaworld ML1 tasks avaible under
gym.make(metaworld/...)
/gym.make(metaworld_ProMP/...)
/ etc.Registering mp-variants of environments and MP configuration management has been streamlined (details in the new README, all fancy envs and mp-wrappers were ported over to this new format).
We still fail 12 / 4630 Tests, but these are caused by bugs in other projects and should be fixed there.
These are listed here.
Additional changes:
This PR is based on Fabian's '47-update-to-new-gym-api'-branch.
This PR addresses the open issues #47, #62, #34 and PR#71.