[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115129":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":21,"topics":22,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":33,"discoverSource":34},115129,"muscle-supermimic","kaibohex\u002Fmuscle-supermimic","kaibohex","SuperMimic whole-body motion tracking for muscle-driven humanoids on mjlab.","http:\u002F\u002Fmuscle-supermimic.beanpow.top\u002F",null,"Python",55,4,2,1,0,41.81,"Apache License 2.0",false,"master",true,[23,24,25,26,27,28],"mjlab","musclemimic","musculoskeletal","reinforcement-learning","supermimic","world-model","2026-11-14 00:50:11","2026-11-16 14:37:13","# muscle-supermimic\n\n**Whole-body motion tracking for musculoskeletal humanoids with one differentiable world model:**\n[SuperMimic](https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.28480) driving MS-Human-700 (700 muscles) and MyoFullBody (354\nmuscles), on [mjlab](https:\u002F\u002Fgithub.com\u002Fmujocolab\u002Fmjlab) \u002F MuJoCo-Warp.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fteaser_three.gif\" width=\"840\" alt=\"MS-Human-700 and MyoFullBody side by side tracking three clips: turning left, walking forward, walking backward\">\n  \u003Cbr>\u003Csub>Three KIT training clips (turning left, walking forward, walking backward), each tracked by MS-Human-700\n  (left of the pair) and MyoFullBody (right), each with its own policy at iteration 10000; muscles are colored by\n  activation, from light grey (0) to deep red (1).\u003C\u002Fsub>\n\u003C\u002Fp>\n\nSuperMimic trains a tracking policy by backpropagating through rollouts of a learned world model of the\nbody. This repository runs it on muscle-driven humanoids, with MuscleMimic's tracking task: the policy sets\nthe excitation of every muscle at 100 Hz to follow motion-capture clips.\n\n- **Two whole-body muscle models.** MS-Human-700 (37 joint DoF, 700 muscles; also with locked hands) and\n  MuscleMimic's MyoFullBody (31 joint DoF, 354 muscles), as mjlab tasks.\n- **One MDP, simulated and imagined.** Every observation, reward and termination is an analytic function of\n  the state, used by the simulator's managers and by the imagined rollouts alike; tests check that both agree.\n- **Differentiable muscles.** A torch replica of MuJoCo's spatial tendons and Hill muscles gives muscle\n  length, velocity and force on imagined states, equal to MuJoCo's to 1e-9 \u002F 1e-8 \u002F 1e-6.\n- **Motion data for both.** MuscleMimic's retargeted AMASS (KIT) clips drive MyoFullBody as they are;\n  `ms-retarget-myofullbody` carries them over to MS-Human-700.\n\n## News\n\n- **[2026-11]** Not only fast but also accurate: after 20 minutes of training the held-out MPJPE is 18 mm (the first\n  release after 10 hours: 22 mm), and 14 mm with test-time action refinement through the world model, which also\n  reaches 0.83 after 5.2 minutes. See [Fast training](#fast-training).\n- **[2026-11]** The code of the fast training recipe is out: see [Fast training](#fast-training).\n- **[2026-11]** Training sped up again, from 9 to 6.5 minutes.\n- **[2026-11]** Training sped up again, from 14 to 9 minutes: MS-Human-700 passes a normalized return of 0.83 on the\n  108 held-out clips after 9 minutes on one RTX 5090 with both of two seeds, with the compile caches warmed up. Code:\n  [Fast training](#fast-training).\n- **[2026-11]** Training sped up from 4 hours to 14 minutes: MS-Human-700 passes a normalized return of 0.83 on the 108\n  held-out clips after 14 minutes on one RTX 5090, with the compile caches warmed up. Code: [Fast training](#fast-training).\n- **[2026-10]** Checkpoints of both bodies on [Hugging Face](https:\u002F\u002Fhuggingface.co\u002FBeanpow\u002Fmuscle-supermimic), and an\n  [interactive demo](https:\u002F\u002Fmuscle-supermimic.beanpow.top\u002Fdemo\u002F) on the [project page](https:\u002F\u002Fmuscle-supermimic.beanpow.top\u002F)\n  that runs both policies in the browser on 32 held-out clips.\n- **[2026-10]** First release: SuperMimic tracking on MS-Human-700 and MyoFullBody.\n\n## Status\n\nBoth bodies train on MuscleMimic's KIT split (972 training clips) with the defaults: 4096 environments on one RTX\n5090. Evaluation plays each of MuscleMimic's 108 held-out clips once from its first frame, without exploration noise.\n\n- **MS-Human-700** (locked hands, the clips retargeted to it): a normalized return of 0.83 after 4 hours\n  (iteration 6500, 99 of 108 clips tracked to the end), 0.89-0.91 from 4.9 hours on, and 0.91 after 10.1 hours\n  (iteration 16000, 104 tracked); iterations 10000, 14000, 14500 and 15500 track all 108.\n- **MyoFullBody**: 0.83 after 6.0 hours (iteration 10000, 101 tracked) and 0.90 after 9.6 hours (iteration 16000,\n  all 108 tracked).\n\nThe checkpoints of iterations 10000 and 16000 of both runs are on Hugging Face:\n[Beanpow\u002Fmuscle-supermimic](https:\u002F\u002Fhuggingface.co\u002FBeanpow\u002Fmuscle-supermimic).\n\n## Fast training\n\n`scripts\u002Ftrain_blink.sh` trains MS-Human-700 (locked hands, without muscle observations) to a normalized return of\n0.83 on the 108 held-out clips in **6.4 minutes** on one RTX 5090, with both of two seeds (best 0.944 \u002F 0.945),\nagainst 4.3 hours for the first release. It is also more accurate: after 20 minutes of training the two seeds track\nthe held-out clips with an MPJPE of 18.3 mm and a joint angle error of 3.4 degrees, against 22.4 mm and 5.1 degrees\nfor the first release after 10 hours, and 13.6 mm and 3.0 degrees with test-time refinement (below). It ports the training speedups of\n[BlinkMimic](https:\u002F\u002Fgithub.com\u002Ffuyichen0725\u002Fblinkmimic) (which builds on\n[InstantTrack](https:\u002F\u002Fgithub.com\u002FHuy-Quang-Dao\u002FinstantTrack)), changes the three that do not transfer to 694\nmuscles, and adds changes of our own. Every change is a runner flag, off by default: `uv run train` without them is\nstill the first release's training.\n\n\u003Cp align=\"center\">\n  \u003Cpicture>\n    \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Ffast_training_dark.svg\">\n    \u003Cimg src=\"docs\u002Fassets\u002Ffast_training_light.svg\" width=\"760\" alt=\"Time to a held-out normalized return of 0.83 on MS-Human-700, step by step: the first release 4.3 hours; InstantTrack and BlinkMimic method changes 1.8 hours; no muscle observations and the updates as CUDA graphs 36 minutes; the collection as a CUDA graph 24 minutes; 1024 environments with overlapped collection 14 minutes; Beta exploration noise 9 minutes; 50 Hz control 6.4 minutes; the same checkpoints with test-time action refinement 5.2 minutes, 49 times faster in all\">\n  \u003C\u002Fpicture>\n  \u003Cbr>\u003Csub>The first held-out evaluation at or above 0.83, MS-Human-700 with locked hands, one RTX 5090, warm compile\n  caches. Each step adds to the one above, coloured by where it comes from: InstantTrack and BlinkMimic, ours, or both\n  (striped). The last bar is not a training change: the same checkpoints evaluated with the test-time action refinement\n  described below.\u003C\u002Fsub>\n\u003C\u002Fp>\n\n```bash\nbash scripts\u002Ftrain_blink.sh Mjlab-SuperMimic-Flat-MS-Human-700-Locked-Hands-No-Muscle-Obs \\\n    data\u002Fmshuman700_kit\u002Fkit_kinesis_train.txt --agent.run-name blink --agent.max-hours 0.3333\n# the recipe controls at 50 Hz: evaluate at the same rate\nuv run ms-eval --task Mjlab-SuperMimic-Flat-MS-Human-700-Locked-Hands-No-Muscle-Obs --decimation 10 --stride 10 \\\n    --checkpoint logs\u002Frsl_rl\u002Fmshuman700_tracking\u002F\u003Crun>\u002Fmodel_\u003Citeration>.pt --motion-file data\u002Fmshuman700_kit\u002Fkit_kinesis_test.txt\n```\n\nThe times are with warm compile caches: a fresh machine first compiles for 5-10 minutes inside the training clock,\nunless it loads caches saved with `scripts\u002Fcompile_cache.sh`.\n\n**Taken from BlinkMimic and InstantTrack**, as they are:\n\n- the deployed policy is a Polyak average (EMA 0.995) of the trained one (InstantTrack);\n- Muon on the hidden weight matrices of the policy and the world model, Adam elsewhere (BlinkMimic);\n- no host synchronization in the update loop, and fused Adam (InstantTrack);\n- learning rate 4e-4 and a 3 x 1024 world model with 5 batches per iteration (InstantTrack); an imagination batch of\n  2048 (BlinkMimic);\n- reset statistics averaged per clip bin before their EMA step (BlinkMimic), and 30 % of the resets just before\n  recent failure points (InstantTrack);\n- a semi-implicit world model (it predicts velocity increments and integrates positions as the Euler substeps do)\n  and the left-right mirror image of half of each world-model batch (BlinkMimic);\n- the world-model and policy updates as CUDA graphs (InstantTrack \u002F BlinkMimic), and the collection step as a CUDA\n  graph (BlinkMimic's idea; here a thin wrapper around MuJoCo-Warp, `rl\u002Fsupermimic\u002Fcollector.py`).\n\n**Changed for 694 muscles**: three of BlinkMimic's G1 settings fail on MS-Human-700.\n\n- No world-model warm-up and unclamped bootstrapped values: the critic diverges from the first policy updates.\n  Here the bootstrapped values are clamped to the attainable maximum and the world model trains alone for 200\n  iterations.\n- A 4x policy learning rate early on: the policy degrades after about 1000 iterations, and even 2x stalls about half\n  of the runs. Here it stays at 1x.\n- Evaluation-guided resets: on 5 s clips every probe fails within 3 s of its start, and the sweeps cost half the\n  training time. Here they are off.\n\n**Our own changes**:\n\n- Task variants without muscle observations (`-No-Muscle-Obs`): the policy no longer sees muscle length, velocity\n  and force, which removes the muscle geometry, the costliest part of an imagined step. On MyoFullBody the policy\n  update takes half the time, with the same learning curve over 16000 iterations.\n- 1024 environments instead of 4096, with the collection on a second CUDA stream, concurrent with the updates.\n- Exploration noise drawn from a Beta distribution whose mean is the policy's excitation, instead of a Gaussian\n  clipped to [0, 1], which adds a tonic co-contraction to the muscles the policy keeps nearly silent.\n- 50 Hz control: 10 physics substeps per policy step instead of 5, every step-counted setting rescaled to keep its\n  duration (horizon, discount, buffer, world-model windows, goal spacing, simulator steps per iteration), and the\n  exploration noise scaled by 1\u002Fsqrt(2) to keep its variance per second.\n\n**Test-time action refinement** (not a training change): at every control step, the deployed policy's action is moved\nby five normalized gradient-ascent steps on the world model's imagined return (the training horizon, the analytic\nrewards and the bootstrapped value, as the policy update computes it) and the iterate of highest imagined return is\nexecuted. On the 108 held-out clips it brings the 20-minute policies from 0.940 to 0.965 (two seeds; no failed clip),\nthe MPJPE from 18.3 to 13.6 mm and the joint angle error from 3.4 to 3.0 degrees, and earlier checkpoints pass 0.83:\nafter 4.6 and 5.2 minutes of training for the two seeds. A control step of the 108 clips takes 0.17 s instead of the\npolicy's 0.04 s on an RTX 5070 Ti. `ms-refine` evaluates one checkpoint this way, with `ms-eval`'s metrics:\n\n```bash\nuv run ms-refine --task Mjlab-SuperMimic-Flat-MS-Human-700-Locked-Hands-No-Muscle-Obs --decimation 10 --stride 10 \\\n    --checkpoint logs\u002Frsl_rl\u002Fmshuman700_tracking\u002F\u003Crun>\u002Fmodel_\u003Citeration>.pt --motion-file data\u002Fmshuman700_kit\u002Fkit_kinesis_test.txt\n```\n\nEach step adds to the one above (MS-Human-700 with locked hands, one RTX 5090, warm compile caches):\n\n| | first 0.83 on the held-out clips | s \u002F iteration |\n|---|---|---|\n| first release (4096 environments) | 4.3 h | 2.38 |\n| + the method changes of BlinkMimic and InstantTrack, changed for 694 muscles | 1.8 h | 1.89 |\n| + no muscle observations, the updates as CUDA graphs | 36 min | 0.67 |\n| + the collection step as a CUDA graph | 24 min | 0.48 |\n| + 1024 environments, the collection concurrent with the updates | 14 min | 0.24 |\n| + Beta exploration noise, no rematerialization of the imagined steps | 9 min | 0.21 |\n| + 50 Hz control | 6.4 min | 0.14 |\n| + test-time action refinement (evaluation only: five gradient steps through the world model per control step) | 5.2 min | 0.14 |\n\nThe last three rows hold for two seeds each (the refinement: 4.6 and 5.2 min), the others are single runs.\n[docs\u002Ftraining.md](docs\u002Ftraining.md) (\"BlinkMimic recipe\") lists every flag, what each setting does, and the\niteration's time piece by piece.\n\n## Install\n\n```bash\ngit clone --recursive https:\u002F\u002Fgithub.com\u002Fkaibohex\u002Fmuscle-supermimic.git   # MS-Human-700 is a submodule\ncd muscle-supermimic\nuv sync           # Python 3.12; mjlab 1.6.0 (torch, MuJoCo-Warp), musclemimic-models 1.0.6\nuv run pytest     # CPU, ~1.5 min; tests\u002Ftest_env.py needs the test clips (docs\u002Fmotion_data.md)\n```\n\n## Quick start\n\nMyoFullBody on MuscleMimic's retargeted KIT clips (a gated dataset: accept its terms on the\n[dataset page](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Famathislab\u002Fmusclemimic-retargeted) first):\n\n```bash\nuvx --from huggingface_hub hf auth login\nuvx --from huggingface_hub hf download amathislab\u002Fmusclemimic-retargeted --repo-type dataset \\\n    --include \"MyoFullBody\u002Fgmr\u002FKIT\u002F*\" --local-dir data\u002Fmusclemimic\n\n# train on MuscleMimic's training list\nuv run train Mjlab-SuperMimic-Flat-MyoFullBody --env.commands.motion.motion-file data\u002Fmusclemimic\u002Fkit_kinesis_train.txt\n\n# evaluate a checkpoint on the held-out list (a GPU takes ~30 s for the 108 clips), record the rollouts and render them\nuv run ms-eval --task Mjlab-SuperMimic-Flat-MyoFullBody --checkpoint logs\u002Frsl_rl\u002Fmyofullbody_tracking\u002F\u003Crun>\u002Fmodel_\u003Citeration>.pt \\\n    --motion-file data\u002Fmusclemimic\u002Fkit_kinesis_test.txt --record rollout.npz\nuv run ms-render rollout.npz videos\u002F\n```\n\nMS-Human-700 on the same clips, retargeted from MyoFullBody (CPU, ~20 min):\n\n```bash\nuv run ms-retarget-myofullbody data\u002Fmshuman700_kit data\u002Fmusclemimic\u002Fkit_kinesis_train.txt data\u002Fmusclemimic\u002Fkit_kinesis_test.txt --workers 6\nuv run train Mjlab-SuperMimic-Flat-MS-Human-700-Locked-Hands --env.commands.motion.motion-file data\u002Fmshuman700_kit\u002Fkit_kinesis_train.txt\n\n# the retargeted reference itself, replayed kinematically (no controller)\nuv run ms-render data\u002Fmshuman700_kit\u002F359\u002Fturn_left05_poses.npz videos\u002F --lock-hands\n```\n\nMyoFullBody fits a 24 GB GPU and MS-Human-700 a 32 GB one at the default 4096 envs; see\n[docs\u002Ftraining.md](docs\u002Ftraining.md) for smaller settings, evaluation while training and mjlab's viewer.\n\n## Tasks\n\n| Task | Joint DoF | Muscles |\n|---|---|---|\n| `Mjlab-SuperMimic-Flat-MS-Human-700` | 37 + free root | 700 |\n| `Mjlab-SuperMimic-Flat-MS-Human-700-Locked-Hands` | 33 + free root | 694 |\n| `Mjlab-SuperMimic-Flat-MyoFullBody` | 31 + free root | 354 |\n\nThe tasks register through mjlab's `mjlab.tasks` entry point with the SuperMimic runner, so mjlab's own\n`train` and `play` run them.\n\n## Documentation\n\n- [Project page](docs\u002Fwebsite\u002Findex.html): results, videos and the method in one page (published to GitHub Pages).\n- [Models](docs\u002Fmodels.md): what changes from the upstream MS-Human-700 and MyoFullBody, locked hands.\n- [Motion data](docs\u002Fmotion_data.md): clip formats, MuscleMimic's KIT split, retargeting to MS-Human-700.\n- [MDP](docs\u002Fmdp.md): observation, goal, reward, terminations, and how simulator and imagination share them.\n- [Training](docs\u002Ftraining.md): the algorithm and its settings, commands, solver, memory and speed.\n\n## Layout\n\n| Path | What |\n|---|---|\n| `src\u002Fmuscle_supermimic\u002Fassets\u002Frobots\u002F` | the two robots as mjlab `EntityCfg`s, and `ModelInfo` (root, independent and coupled joints, muscles) |\n| `src\u002Fmuscle_supermimic\u002Ftasks\u002Ftracking\u002F` | the task: env cfg, `mdp\u002F` (FK, muscle geometry and activation, motion library, analytic terms), per-robot configs, `scripts\u002F` (`ms-retarget-myofullbody`, `ms-eval`, `ms-refine`, `ms-render`) |\n| `src\u002Fmuscle_supermimic\u002Frl\u002Fsupermimic\u002F` | the SuperMimic runner, world model \u002F policy \u002F critic, replay buffer, config |\n| `third_party\u002FMS-Human-700\u002F` | the upstream MS-Human-700 model (git submodule) |\n| `tests\u002F` | FK, muscles and activation vs MuJoCo, retargeting, simulator vs analytic terms, a tiny end-to-end training run |\n\n## Citation\n\nIf you use this code, please cite:\n\n```bibtex\n@misc{he2026musclesupermimic,\n  title        = {{muscle-supermimic}: Whole-Body Motion Tracking for\n                  Musculoskeletal Humanoids with One Differentiable\n                  World Model},\n  author       = {He, Kaibo and Bakowicz, Maciej and Zhou, Shihe and\n                  Sui, Yanan and Radhakrishnan, Dhanush},\n  year         = {2026},\n  howpublished = {\\url{https:\u002F\u002Fgithub.com\u002Fkaibohex\u002Fmuscle-supermimic}},\n  note         = {Project page: \\url{https:\u002F\u002Fmuscle-supermimic.beanpow.top}}\n}\n```\n\n## Related work\n\nIt builds on the following works; please cite them as well:\n\n- SuperMimic: Q. Liao et al., *SuperMimic: Scaling Humanoid Whole-Body Control with One Differentiable\n  World Model*, CoRL 2026, [arXiv:2610.28480](https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.28480).\n- MuscleMimic: Li et al., *Towards Embodied AI with MuscleMimic*,\n  [arXiv:2603.25544](https:\u002F\u002Farxiv.org\u002Fabs\u002F2603.25544), [code](https:\u002F\u002Fgithub.com\u002Famathislab\u002Fmusclemimic).\n- MS-Human-700: [MuJoCo Menagerie, ms_human_700](https:\u002F\u002Fgithub.com\u002Fgoogle-deepmind\u002Fmujoco_menagerie\u002Ftree\u002Fmain\u002Fms_human_700).\n- mjlab: [mujocolab\u002Fmjlab](https:\u002F\u002Fgithub.com\u002Fmujocolab\u002Fmjlab).\n- BlinkMimic: F. Chen, [fuyichen0725\u002Fblinkmimic](https:\u002F\u002Fgithub.com\u002Ffuyichen0725\u002Fblinkmimic), and InstantTrack,\n  [Huy-Quang-Dao\u002FinstantTrack](https:\u002F\u002Fgithub.com\u002FHuy-Quang-Dao\u002FinstantTrack), for the fast training recipe.\n\n## License and attribution\n\nApache License 2.0 ([LICENSE](LICENSE)); [NOTICE](NOTICE) carries the notices of the code it includes.\n\n- The SuperMimic implementation is ported from [supermimic_vibed](https:\u002F\u002Fgithub.com\u002Fzita-ch\u002Fsupermimic_vibed)\n  by Chong Zhang (MIT, Copyright (c) 2026 ETH Zurich, Chong Zhang); ported files say so in their docstrings.\n- The BlinkMimic pieces of the runner (`rl\u002Fsupermimic\u002Foptim.py`; the policy EMA, the update loop without host\n  synchronization, the Muon split, the policy learning-rate schedule and the reset-statistics fixes) and\n  `scripts\u002Ftrain_blink.sh` are ported from BlinkMimic (MIT, Copyright (c) 2026 Fuyi Chen), which derives from\n  InstantTrack (MIT). The optional DEP controller (`rl\u002Fsupermimic\u002Fdep.py`) is ported from\n  [depRL](https:\u002F\u002Fgithub.com\u002Fmartius-lab\u002FdepRL) (MIT).\n- The MyoFullBody entity follows MuscleMimic's environment (Apache-2.0,\n  `musclemimic\u002Fenvironments\u002Fhumanoids\u002Fmyofullbody.py`): the finger joints and muscles it removes, the mimic\n  sites it tracks. Its license is in `third_party\u002Fmusclemimic\u002FLICENSE`; the KIT train\u002Ftest lists in\n  `data\u002Fmusclemimic\u002F` are MuscleMimic's (`loco_mujoco\u002Fsmpl\u002Fconst.py`).\n- MS-Human-700 (Apache-2.0, LNSGroup), mjlab (Apache-2.0).\n- The MyoFullBody model comes from the `musclemimic-models` package (Apache-2.0), installed, not vendored. Its\n  NOTICE lists what it derives from: MyoSuite \u002F myo_sim (Apache-2.0) and OpenSim models, among them MoBL-ARMS\n  (arm and hand), released for **non-commercial use only**.\n- The motions are AMASS (KIT) clips under AMASS's license (non-commercial research, no redistribution); they\n  are not part of this repository, and clips retargeted from them must not be redistributed either.\n","muscle-supermimic 是一个面向肌肉驱动人形机器人的全身体态运动跟踪框架，基于可微分世界模型实现端到端肌肉激励策略学习。核心功能包括：支持 MS-Human-700（700 肌肉）与 MyoFullBody（354 肌肉）两类高保真骨骼肌模型；在 mjlab\u002FMuJoCo-Warp 环境中以 100 Hz 频率优化全肌肉兴奋信号；提供与 MuJoCo 数值一致的可微分肌肉动力学（误差达 1e-6~1e-9）；并集成 AMASS\u002FKIT 动捕数据的跨模型重定向流程。适用于生物力学仿真、神经肌肉控制研究、具身智能中的仿生运动建模等需要高精度肌肉-运动联合优化的科研场景。","2026-11-24 04:50:26","CREATED_QUERY"]