MyoSuite is a collection of environments/tasks to be solved by musculoskeletal models simulated with the MuJoCo physics engine and wrapped in the OpenAI gym API.
I was able to reproduce the same error when just attempting to load a pre-trained depRL model with the following script:
Load depRL Baseline for Walking:
import gym
import myosuite
import deprl
# we can also change the reset_type of the environment here
env = gym.make('myoLegWalk-v0', reset_type='random')
policy = deprl.load_baseline(env)
for ep in range(5):
obs, _ = env.reset()
for i in range(1000):
action = policy(obs)
next_obs, reward, done, truncated, info = env.step(action)
env.sim.renderer.render_to_window()
obs = next_obs
if done:
break
Issue: Error Training MyoLeg Agent with depRL
Hello!
I'm running into an error when trying to train the MyoLeg agent with depRL. Specifically, following this example
Steps to Reproduce
Attempt to Train Agent:
Error:
I was able to reproduce the same error when just attempting to load a pre-trained depRL model with the following script:
Load depRL Baseline for Walking:
Error:
And this error could be resolved changing the import statement for gym to:
This does fix the issue in the above example script but does not resolve the training error.
however this didn't fix the issue and returned the same error.
I'm wondering if this has anything to do with a myosuite-gym (or gymnaisum) update? Any help would be greatly appreciated, thanks!
Configuration and Environment
MacOS Configuration:
Linux Configuration:
On Linux, attempting to train the MyoLeg agent yielded: