GitXplorerGitXplorer
A

jax_shac

public
8 stars
1 forks
0 issues

Commits

List of commits on branch main.
Verified
f43e5d8111dc726d96e8e14df6def8a109887147

Update README.md

AAndrew-Luo1 committed 2 months ago
Unverified
2896b3e1f2d7c4acfcce6af1a6cc92a64780cdf6

replace train with train_class

AAndrew-Luo1 committed 10 months ago
Unverified
9158892e6071ba51ab296d5e08432813c2830321

clean up 2dofball

AAndrew-Luo1 committed 10 months ago
Verified
3acd73a1f2bbfbd3cf953fff73c5141792ed0b62

Update README.md

AAndrew-Luo1 committed 10 months ago
Verified
1e4b712455213439213977509518dddf59a5eb23

Update README.md

AAndrew-Luo1 committed 10 months ago
Verified
825e7e103f53c310721110116c5984b0c1cae16b

Update README.md

AAndrew-Luo1 committed 10 months ago

README

The README file for this repository.

jax-shac

  • An implementation of Short Horizon Actor Critic (Xu; 2022) writen in Jax
  • Simulation using the Mujoco MJX simulator

Results

Inverted Pendulum

inverted_pend-ezgif com-video-to-gif-converter image

Run Time: 1 min jit, 2 min training

Known Issues: For some random seeds, you get drift in the cart position.

1 DOF Hopper

framed_hopper-ezgif com-video-to-gif-converter

image

Run Time: 1 min jit, 2 min training

Known Issues: As seen in the rewards figure, training can be unstable.

Warning: MJX + Exploding Gradients

  • Having great difficulty applying SHAC to get Anymal to walk with default 32-bit precision. (See Mujoco for an example with 64-bit precision)
  • Hypothesis: it's because quadruped gait is very contact-rich, leading to uninformative gradients.

anymal_vid-ezgif com-video-to-gif-converter

32-step rollout. Ground flashes red when step jacobian is greater than 10e2.

Setup

  • pip install -r requirements.txt
  • Add the parent folder of this repository to your PYTHONPATH environment variable.