-
Notifications
You must be signed in to change notification settings - Fork 247
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
Gymnasium Compatibility #735
Conversation
Linking HumanCompatibleAI/seals#72 to this |
I am getting some weird pytype error that it cannot import packages. I remember facing this at some point in the past. @ernestum do you know what the cause of this is?
|
No I have never seen this error before 🤷 |
c953d78
to
d866d33
Compare
4ddbba0
to
1fdee56
Compare
Most of them are due to the fact, that gymansium Spaces do not necessarily have shapes or dtypes.
Black and isort fixes.
…so we get the right version of protobuf.
…the installation instructions.
… dependency automatically).
…ium API and simplify the implementation.
@dan-pandori could you review this since Juan is busy with an ICLR submission right now? Please do tag me in any areas of the code you're uncertain about. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for cleaning up types in several places and the detailed PR description.
I just added a few minor nits about comments etc. I don't deeply understand the behavior of resetting the seed vs using seed()
, so you should ask Adam if you want a better opinion on that.
… that has an incompatible observation space.
Description
Make
imitation
compatible withgymnasium
because the oldgym
is outdated.Main changes:
import gym
->import gymnasium as gym
.seed(x)
->.reset(seed=x)
,done
->terminated
/truncated
,.reset()
not returns a tuple)seals
any more and rather use theseals:
prefix on environment names.make_vec_env
does not mess withTimeLimit
wrappers any more (gymnasium
does that for us)To be changed before merging
rnn
, I just need to push them)gym
as part of the pipeline (that was just so we can load the current models)Notes on the failing pipeline
Testing
No new tests have been added but all tests pass now.
Thanks to all the people that helped coding and reviewing!
@AdamGleave, @araffin, @EdoardoPona, @Rocamonde, @simoninithomas,
This PR has been possible due to lots of work in our dependencies: