Error when running training_apg.ipynb: ValueError: safe_zip() argument 2 is longer than argument 1 #1994
Replies: 5 comments
-
@Andrew-Luo1, any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Update: I found that I had actually made some changes to the environment
These were settings that I previously found to work well with my model that I was planning on using APG for later. |
Beta Was this translation helpful? Give feedback.
-
I haven't tried differentiating through mjx.step with settings other than from 1182. Do these settings work for you? I found that with the eulerdamp flag disabled, I could stably simulate anything from a pendulum to a quadruped with high PD gain. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the input @Andrew-Luo1, after disabling eulerdamp I'm no longer getting the zip() error! Unfortunately I'm now getting a NaN during
This is environment is using a slightly modified dmcontrol rodent model (to make it MJX compatible). Is this new issue due to simulation stability? I had previously gotten nans with this model when using the Newton solver for basic PPO training(hence the original solver changes), but the original issue persists if I try to change the solver settings. Any advice on what to try would be appreciated! |
Beta Was this translation helpful? Give feedback.
-
In my experience, ocassional nans are to be expected from simulators. I also ran into nans with PPO training. Here's three thoughts:
Hopefully these help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm a student trying out MJX for some projects. I was looking at training_apg.ipynb and tried running it on my computer and got this error:
line 1114 is what I added to check the values of the zipped values, and I got this:
I am using jax/jaxlib v0.4.25, cloned the brax repo, and reproduced this bug on both Mujoco 3.1.4 and 3.1.5.
I'm not sure how to debug this from here; any advice would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions