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

render_baselines not compatible with most recent myosuite update #14

Open
v9joshi opened this issue Aug 20, 2024 · 0 comments
Open

render_baselines not compatible with most recent myosuite update #14

v9joshi opened this issue Aug 20, 2024 · 0 comments

Comments

@v9joshi
Copy link

v9joshi commented Aug 20, 2024

With the most recent update to myosuite the observation and action steps work slightly differently (probably because of a different version of gym?). I had to make the following changes in render_baselines.py to get it to work.
line 20:
obs = env.obsdict2obsvec(env.obs_dict, env.obs_keys)[1]
This makes sure the input to the policy has the correct shape.

line 22:
obs, reward, done, *_ = env.step(action)

As env.step now returns 5 outputs instead of 4.

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

No branches or pull requests

1 participant