[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107626":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":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":15,"starSnapshotCount":15,"syncStatus":14,"lastSyncTime":37,"discoverSource":38},107626,"blinkmimic","fuyichen0725\u002Fblinkmimic","fuyichen0725","Whole-body motion tracking for the Unitree G1 in about 3 minutes on one GPU.","",null,"Python",329,24,2,0,3,77,228,14,80.19,"MIT License",false,"main",[25,26,27,28,29,30,31,32],"humanoid-robotics","lafan1","mjlab","motion-tracking","mujoco-warp","supermimic","unitree-g1","world-model","2026-11-03 01:58:28","2026-11-23 16:16:42","# BlinkMimic\n\n**Whole-body motion tracking for the Unitree G1 in about 3 minutes on one RTX 4090.**\n\nBlinkMimic trains one policy for all 40 LAFAN1 clips (2.45 h of motion) to an evaluation normalized return of 0.82\nin **2.9 min of training on one RTX 4090** (mean of 3 seeds), and to 0.82 with 0 of 40 clips failed for 3\ncheckpoints in a row in **3.4 min**.\n\nLike SuperMimic and InstantTrack, BlinkMimic learns one differentiable world model and trains the policy by backpropagation through\nimagined rollouts, on [mjlab](https:\u002F\u002Fgithub.com\u002Fmujocolab\u002Fmjlab) \u002F MuJoCo Warp. BlinkMimic changes how the policy\nis optimized and where the simulator spends its resets ([details](#what-blinkmimic-changes)).\n\n![Equal training time (3.1 min). SuperMimic and InstantTrack v1.2 fall on fallAndGetUp1_subject1; BlinkMimic tracks it.](docs\u002Fstatic\u002Fhero.gif)\n\n*Each policy after 3.1 min of training (seed 0), on `fallAndGetUp1_subject1`: the first 8 s, then 30–42 s,\nsimulated in MuJoCo Warp under evaluation conditions. Blue ghost: reference motion. A faded panel has fallen.*\n\n## Results\n\nAll runs on one RTX 4090 (driver 580, CUDA 12.8, torch 2.9.0), the GPU otherwise idle. 40 LAFAN1 clips; every\ncheckpoint (one per 100 iterations) evaluated on all 40 clips from their first frame with 4 replicas; return and\nfailed clips are averaged over the replicas. Minutes are training wall-clock, including compilation, CUDA-graph capture, probe sweeps and\ncheckpointing, excluding process start-up and data loading.\n\n![Training time to return ≥ 0.82 (left) and to the strict target (right)](docs\u002Fstatic\u002Ftime_to_target.svg)\n\n### Time to target\n\n| | seeds | first return ≥ 0.82 (min) | ≥ 0.82 and 0 failed, 3 checkpoints in a row (min) | iterations to first ≥ 0.82 | ms \u002F iteration |\n|---|---|---|---|---|---|\n| SuperMimic | (1) | ≈ 41 (estimated) | ≈ 86 (estimated) | 7898 | 310 |\n| SuperMimic + EMA | (3) | ≈ 30 (estimated) | ≈ 32 (estimated) | 5749 \u002F 6000 \u002F 5856 | 310 |\n| InstantTrack v1.2 | 3 | 5.59 \u002F 6.31 \u002F 5.78 (**5.89**) | 7.29 \u002F 8.52 \u002F 6.28 (**7.36**) | 2500 \u002F 2800 \u002F 2500 | 141 |\n| **BlinkMimic** | 3 | 2.89 \u002F 3.28 \u002F 2.64 (**2.94**) | 3.32 \u002F 3.28 \u002F 3.53 (**3.38**) | 1300 \u002F 1500 \u002F 1200 | 133 |\n\n\"First return ≥ 0.82\" is SuperMimic's metric, the strict column InstantTrack's. ms \u002F iteration = training\nwall-clock \u002F iterations.\nSuperMimic times are estimated: the iterations at which InstantTrack's SuperMimic runs reach the target (strict:\n16665; 5749 \u002F 6000 \u002F 6971) × 310 ms per iteration, measured for SuperMimic on our RTX 4090.\n\nBlinkMimic is 6% cheaper per iteration than InstantTrack v1.2 and needs about half the iterations.\n\nWith 6 checkpoints in a row instead of 3, BlinkMimic reaches the target in 2 of 3 seeds (5.36, 3.53 min) and\nInstantTrack v1.2 in 1 of 3 within 4500 iterations.\n\n### Equal training time\n\nMean return \u002F failed clips (of 40) at the last checkpoint within the budget. These SuperMimic runs took 331–348 ms\nper iteration (310 ms above).\n\n| training time | SuperMimic (1 seed) | SuperMimic + EMA (3 seeds) | InstantTrack v1.2 (3 seeds) | **BlinkMimic** (3 seeds) |\n|---|---|---|---|---|\n| 3.1 min | 0.179 \u002F 29.2 | 0.002 \u002F 40 | 0.639 \u002F 12.3 | **0.821 \u002F 1.5** |\n| 4.5 min | 0.367 \u002F 16.8 | 0.231 \u002F 28.9 | 0.767 \u002F 5.0 | **0.851 \u002F 0** |\n| 7.8 min | 0.495 \u002F 12.2 | 0.480 \u002F 14.0 | 0.846 \u002F 0.1 | **0.861 \u002F 0** |\n\n![Return and failed clips over training time](docs\u002Fstatic\u002Fcurves.svg)\n\n### Tracking quality at equal training time\n\nMean of 3 seeds, one deterministic rollout per clip (`tools\u002Feval_metrics.py`), at iteration 2000 (4.3–4.6 min) and at\nthe last checkpoint within 7.8 min (v1.2: iteration 3400; BlinkMimic: 3500).\n\n| training time | method | return ↑ | failed clips ↓ | body pos (cm) ↓ | body ori (°) ↓ | joints (°) ↓ | foot slip (cm\u002Fs) ↓ | contact agreement ↑ | penetration (mm) ↓ |\n|---|---|---|---|---|---|---|---|---|---|\n| 4.4 min | InstantTrack v1.2 | 0.765 | 5.3 | 5.15 | 10.3 | 4.85 | 7.75 | 0.746 | 0.079 |\n| 4.4 min | **BlinkMimic** | **0.851** | **0.3** | **3.74** | **7.37** | **3.99** | **6.87** | **0.757** | **0.061** |\n| 7.8 min | InstantTrack v1.2 | 0.847 | 0 | 4.07 | 8.29 | 4.77 | 7.18 | **0.775** | 0.061 |\n| 7.8 min | **BlinkMimic** | **0.862** | 0 | **3.44** | **7.02** | **4.19** | **6.66** | 0.765 | **0.058** |\n\nFoot slip of the reference motion itself: 10.2 cm\u002Fs.\n\n## What BlinkMimic changes\n\n| | SuperMimic ([supermimic_vibed](https:\u002F\u002Fgithub.com\u002Fzita-ch\u002Fsupermimic_vibed)) | InstantTrack v1.2 | BlinkMimic | flag |\n|---|---|---|---|---|\n| policy EMA, resets before recent failure points, contact reward, world model 3 × 1024, learning rate 4e-4 | – | ✓ | ✓ | `PRESET[instanttrack]` |\n| no host synchronization in the update loop, fused Adam, fused rotations, more of the step compiled | – | ✓ | ✓ | |\n| Muon on the hidden weight matrices of policy and world model (Jordan et al. 2024; Liu et al. 2025) | – | ✓ | ✓ | `--pi_opt muon --wm_opt muon` |\n| world-model and policy updates as CUDA graphs | – | ✓ | ✓ | `--cuda_graph` |\n| goal encoding batched before each imagined rollout (same result, fewer kernels) | – | ✓ | – | |\n| action built on the reference pose | – | ✓ | ✓ | `--pi_ref_skip` |\n| policy encoder \u002F decoder | 2048-1024-512-256 | 1024-512-256 | 2048-1024-512-256 | `--enc_hidden --dec_hidden` |\n| world-model-only warm-up | 500 iterations | 500 iterations | none | `--wm_only_iters 0` |\n| semi-implicit world model: predicts velocity increments and integrates positions | – | – | ✓ | `--wm_structured` |\n| left-right mirror augmentation of half of each world-model batch | – | – | ✓ | `--wm_mirror 0.5` |\n| reset-statistics fixes (duplicate bins; per-clip contact floor of the contact reward) | – | – | ✓ | `--bin_fix --ref_contact_fix` |\n| evaluation-guided resets: from iteration 1000, every 125 iterations the deployed policy is swept over all clips under evaluation conditions; 15% of the resets go to the 10 s before the places where it fails | – | – | ✓ | `--eprobe_*` |\n| imagined-rollout batch (policy and critic) | 4096 | 4096 | 2048, policy learning rate 4×, decayed to 1× over 300 iterations once the training return reaches 0.75 (by iteration 1400) | `--pi_batch --pi_lr_mult --lr_decay_*` |\n| collection step, episode resets and probe sweep as CUDA graphs; sweep on a side stream; checkpoints written by a background thread | – | – | ✓ | `--graph_early --collect_graph --reset_masked --eprobe_graph --eprobe_async --ckpt_light` |\n\nThe released recipe is `PRESET[main]` in [`scripts\u002Fpresets.sh`](scripts\u002Fpresets.sh). `python -m blinkmimic.train`\nwithout flags is the SuperMimic baseline; all methods share simulator, MDP, reward and evaluator.\n\n## Setup\n\nLinux x86_64, an NVIDIA GPU with a driver for CUDA 12.8, [uv](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F), `git`, `curl`, `python3`\n(and `ffmpeg` for videos).\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Ffuyichen0725\u002Fblinkmimic.git\ncd blinkmimic\nuv sync                          # .venv with mjlab, MuJoCo Warp, Warp, torch 2.9.0 (CUDA 12.8)\ntools\u002Fdownload_data.sh           # 40 G1-retargeted LAFAN1 clips + G1 description -> data\u002F\nuv run python tools\u002Ftest_env.py  # sanity check: FK vs simulator, state round-trip, reference playback\n```\n\n## Train, evaluate, reproduce\n\n> **Train on an otherwise idle GPU.** On a shared GPU, `--eprobe_async` can crash with an illegal memory access;\n> add `--eprobe_async 0` there.\n\n```bash\nbash scripts\u002Ftrain.sh logs\u002Frun_s0 --seed 0          # ~8 min: 3500 iterations, a policy checkpoint every 100\nuv run python tools\u002Feval_batch.py --run_dir logs\u002Frun_s0 --group 18 --reps 4   # 18 checkpoints per batch\nuv run python tools\u002Ftime_to_target.py logs\u002Frun_s0\nbash scripts\u002Freproduce.sh logs\u002Freproduce             # the table above: 3 seeds, evaluation, time to target\n```\n\nOther tools: `tools\u002Feval_metrics.py` (accuracy and contact metrics), `tools\u002Frender.py` (videos from\n`python -m blinkmimic.evaluate --record`), `tools\u002Fexport_onnx.py` and `tools\u002Fplay_onnx.py` (deployment format and a\ncheck of it in the simulator; `play_onnx.py` needs `onnxruntime`: `uv run --with onnxruntime python tools\u002Fplay_onnx.py ...`).\n\n## Attribution and licenses\n\n- **Code.** BlinkMimic builds on [supermimic_vibed](https:\u002F\u002Fgithub.com\u002Fzita-ch\u002Fsupermimic_vibed) (Chong Zhang,\n  ETH Zurich) and [InstantTrack](https:\u002F\u002Fgithub.com\u002FHuy-Quang-Dao\u002FinstantTrack) (Huy-Quang-Dao), both MIT-licensed;\n  their notices are in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n- **Method.** SuperMimic (Liao et al., arXiv:2610.28480, 2026). InstantMimic (Choi, Leem, Won, arXiv:2609.09821,\n  2026) for the GPU-native training loop. SuperTrack (Fussell, Bergamin, Holden, 2021) and SHAC (Xu et al., 2022)\n  for learning through a differentiable model. BeyondMimic (Liao et al., arXiv:2508.08241, 2025) for the reward and the evaluation\n  protocol. Muon (Jordan et al., 2024; Liu et al., \"Muon is Scalable for LLM Training\", 2025).\n- **Also consulted.** [rethinking-supermimic](https:\u002F\u002Fgithub.com\u002Fbtx0424\u002Frethinking-supermimic) (btx0424) and the\n  SuperMimic reimplementations listed in [awesome-supermimic](https:\u002F\u002Fgithub.com\u002Fmiao-org\u002Fawesome-supermimic).\n- **Simulation.** [mjlab](https:\u002F\u002Fgithub.com\u002Fmujocolab\u002Fmjlab), [MuJoCo](https:\u002F\u002Fmujoco.org),\n  [MuJoCo Warp](https:\u002F\u002Fgithub.com\u002Fgoogle-deepmind\u002Fmujoco_warp), [NVIDIA Warp](https:\u002F\u002Fgithub.com\u002FNVIDIA\u002Fwarp)\n  (Apache-2.0) and [PyTorch](https:\u002F\u002Fpytorch.org) (BSD-3-Clause).\n- **Data.** LAFAN1 motions by Ubisoft La Forge (Harvey et al., SIGGRAPH 2020), license **CC BY-NC-ND 4.0**; G1\n  retargets and robot description by Unitree (BSD-3-Clause), via the Hugging Face dataset\n  `lvhaidong\u002FLAFAN1_Retargeting_Dataset`. The data are not included here. The GIF and trained checkpoints are\n  derived from LAFAN1: non-commercial research use only, not under this repository's MIT License.\n\n## Citation\n\n```bibtex\n@misc{blinkmimic2026,\n  title  = {BlinkMimic: Whole-Body Motion Tracking for the Unitree G1 in Minutes on One GPU},\n  author = {Chen, Fuyi},\n  year   = {2026},\n  url    = {https:\u002F\u002Fgithub.com\u002Ffuyichen0725\u002Fblinkmimic}\n}\n```\n\nPlease also cite the works it builds on:\n\n```bibtex\n@article{liao2026supermimic,\n  title   = {SuperMimic: Scaling Humanoid Whole-Body Control with One Differentiable World Model},\n  author  = {Liao, Qiayuan and Shao, Yiyang and Long, Junfeng and Zakka, Kevin and Horowitz, Roberto and Abbeel, Pieter and Sreenath, Koushil},\n  journal = {arXiv preprint arXiv:2610.28480},\n  year    = {2026}\n}\n@misc{zhang2026supermimicvibed,\n  title  = {supermimic\\_vibed: An Unofficial Reimplementation of SuperMimic},\n  author = {Zhang, Chong},\n  year   = {2026},\n  url    = {https:\u002F\u002Fgithub.com\u002Fzita-ch\u002Fsupermimic_vibed}\n}\n@misc{instanttrack2026,\n  title  = {InstantTrack: Whole-Body Motion Tracking for the Unitree G1 in 15 Minutes on One GPU},\n  author = {Huy-Quang-Dao},\n  year   = {2026},\n  url    = {https:\u002F\u002Fgithub.com\u002FHuy-Quang-Dao\u002FinstantTrack}\n}\n@article{choi2026instantmimic,\n  title   = {InstantMimic: A High Performance System for Learning Physics-based Skills in Seconds},\n  author  = {Choi, Ikjun and Leem, Geonho and Won, Jungdam},\n  journal = {arXiv preprint arXiv:2609.09821},\n  year    = {2026}\n}\n@article{liao2025beyondmimic,\n  title   = {BeyondMimic: From Motion Tracking to Versatile Humanoid Control via Guided Diffusion},\n  author  = {Liao, Qiayuan and Truong, Takara E. and Huang, Xiaoyu and Tevet, Guy and Sreenath, Koushil and Liu, C. Karen},\n  journal = {arXiv preprint arXiv:2508.08241},\n  year    = {2025}\n}\n@misc{zakka2026mjlab,\n  title         = {mjlab: A Lightweight Framework for GPU-Accelerated Robot Learning},\n  author        = {Zakka, Kevin and Liao, Qiayuan and Yi, Brent and Le Lay, Louis and Sreenath, Koushil and Abbeel, Pieter},\n  year          = {2026},\n  eprint        = {2601.22074},\n  archivePrefix = {arXiv},\n  primaryClass  = {cs.RO}\n}\n@inproceedings{todorov2012mujoco,\n  title     = {MuJoCo: A physics engine for model-based control},\n  author    = {Todorov, Emanuel and Erez, Tom and Tassa, Yuval},\n  booktitle = {IEEE\u002FRSJ International Conference on Intelligent Robots and Systems},\n  pages     = {5026--5033},\n  year      = {2012}\n}\n@misc{mujocowarp2025,\n  title  = {MuJoCo Warp: GPU-accelerated MuJoCo with NVIDIA Warp},\n  author = {{Google DeepMind and NVIDIA}},\n  year   = {2025},\n  url    = {https:\u002F\u002Fgithub.com\u002Fgoogle-deepmind\u002Fmujoco_warp}\n}\n@article{harvey2020robust,\n  title   = {Robust Motion In-betweening},\n  author  = {Harvey, F{\\'e}lix G. and Yurick, Mike and Nowrouzezahrai, Derek and Pal, Christopher},\n  journal = {ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH)},\n  volume  = {39},\n  number  = {4},\n  pages   = {60:1--60:12},\n  year    = {2020}\n}\n@misc{jordan2024muon,\n  title  = {Muon: An optimizer for hidden layers in neural networks},\n  author = {Jordan, Keller and Jin, Yuchen and Boza, Vlado and You, Jiacheng and Cesista, Franz and Newhouse, Laker and Bernstein, Jeremy},\n  year   = {2024},\n  url    = {https:\u002F\u002Fkellerjordan.github.io\u002Fposts\u002Fmuon\u002F}\n}\n@article{liu2025muon,\n  title   = {Muon is Scalable for LLM Training},\n  author  = {Liu, Jingyuan and Su, Jianlin and Yao, Xingcheng and Jiang, Zhejun and Lai, Guokun and Du, Yulun and Qin, Yidao and Xu, Weixin and Lu, Enzhe and Yan, Junjie and others},\n  journal = {arXiv preprint arXiv:2502.16982},\n  year    = {2025}\n}\n```\n\n## License\n\nMIT ([LICENSE](LICENSE)). Copyright (c) 2026 Fuyi Chen; portions Copyright (c) 2026 Huy-Quang-Dao (InstantTrack) and\n(c) 2026 ETH Zurich, Chong Zhang (supermimic_vibed). Data-derived files are excluded; see above.\n","BlinkMimic 是一个面向四足\u002F人形机器人（Unitree G1）的全身运动跟踪方法，能在单块 RTX 4090 GPU 上约 3 分钟内完成策略训练。其核心基于可微分世界模型（MuJoCo Warp + mjlab），通过反向传播优化策略，并改进了仿真重置机制与梯度更新方式，显著缩短训练时间、提升跟踪鲁棒性（如跌倒起立等复杂动作）。适用于机器人运动模仿、离线动作迁移、低延迟运动控制等需快速策略适配的研究与开发场景。","2026-11-24 04:32:26","CREATED_QUERY"]