Skip to content

Muscle-actuated character

MuscleVAE's character: 23 bodies, 284 Hill-type muscles with fatigue, on Newton with MuJoCo-Warp directly (no Isaac Lab; ndm_gym/sim/rigid/muscle_sim.py), tracking MuscleVAE's three LAFAN1 clips. The world models predict the character's state and the muscles' fatigue; the RigidFormer has a token per body and per muscle (--rf_muscle_tokens all) or per body, with the muscles' wrench and pooled encodings (--rf_muscle_tokens body).

bash tools/download_musclevae.sh && python tools/convert_musclevae.py   # character, muscles, motions (not redistributed)
python -m ndm_gym.train_muscles --config muscles-supertrack --log_dir logs/mus_st   # the RigidFormer: muscles-supertrack-rf
python -m ndm_gym.train_muscles --config muscles-supermimic --log_dir logs/mus_sm   # the RigidFormer: muscles-supermimic-rf

# MuscleVAE's released policy in this simulator, rendered in their look (bash tools/download_mass_meshes.sh for the bones)
bash tools/download_musclevae_pretrained.sh
python tools/replay_musclevae.py --out_dir replay
MUJOCO_GL=egl python tools/render_musclevae.py walk.mp4 --states replay/states_lafan_walk_0.npz --ref

SuperTrack's muscle targets are offsets about the reference action, SuperMimic's are about the T-pose; --sm_residual (SuperMimic with offsets about the reference pose) is not implemented by train_muscles.

Selected configurations and results: README, results.md. The character and the models: design.