[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108746":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":14,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":15,"starSnapshotCount":15,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},108746,"ExMR","twehrbein\u002FExMR","twehrbein","3D body, hand and foot motion (SMPL-X) from a single monocular video: world-grounded, with export for Blender, Unity, Unreal and humanoid robots. Official code of ExMR (arXiv 2610.26213).","https:\u002F\u002Ftwehrbein.github.io\u002Fexmr-website\u002F",null,"Python",153,19,3,0,20,83,15,68.14,"Other",false,"main",[24,25,26,27,28,29,30,31,32,33,34,35],"3d-human-pose-estimation","blender","bvh","gvhmr","hand-pose-estimation","human-mesh-recovery","human-motion-capture","humanoid-robot","motion-capture","motion-retargeting","pytorch","smpl-x","2026-10-30 14:42:24","2026-11-23 12:29:25","# ExMR: Extremity Motion Refinement for Monocular Human Motion Capture\n\n[![arXiv](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv-2610.26213-b31b1b.svg)](https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.26213)\n[![Project page](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FProject-Page-blue)](https:\u002F\u002Ftwehrbein.github.io\u002Fexmr-website\u002F)\n[![Model](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97-Model-yellow)](https:\u002F\u002Fhuggingface.co\u002Ftwehrbein\u002FExMR)\n[![Demo](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%F0%9F%A4%97-Demo-yellow)](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Ftwehrbein\u002FExMR)\n\n![ExMR teaser](assets\u002Fteaser.jpg)\n\n> **ExMR: Extremity Motion Refinement for Monocular Human Motion Capture** \u003Cbr>\n> [Tom Wehrbein](https:\u002F\u002Fwww.tnt.uni-hannover.de\u002Fen\u002Fstaff\u002Fwehrbein\u002F) and [Bodo Rosenhahn](https:\u002F\u002Fwww.tnt.uni-hannover.de\u002Fen\u002Fstaff\u002Frosenhahn\u002F) \u003Cbr>\n> arXiv 2026 (journal extension of [FootMR](https:\u002F\u002Ftwehrbein.github.io\u002Ffootmr-website\u002F), 3DV 2026)\n\n> [!NOTE]\n> This repository currently contains the demo code. Evaluation and training code will follow.\n\n## News\n\n- **[2026-10-29]** [v0.1.5](https:\u002F\u002Fgithub.com\u002Ftwehrbein\u002FExMR\u002Freleases\u002Ftag\u002Fv0.1.5): fixes for\n  portrait phone videos (the mesh was beside the person) and for ffmpeg crashing at the end of a run;\n  foot contacts in the results, `--export_fps` (e.g. 24 or 30 fps exports), a world-frame motion that\n  starts facing +z, the mesh's shadow in the world view and world-frame ankles closer to the network's.\n- **[2026-10-26]** Online demo on [Hugging Face Spaces](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Ftwehrbein\u002FExMR):\n  try ExMR in the browser, without installing anything.\n- **[2026-10-26]** [v0.1.4](https:\u002F\u002Fgithub.com\u002Ftwehrbein\u002FExMR\u002Freleases\u002Ftag\u002Fv0.1.4): 3D and 2D joints\n  in the results, BVH export, FBX for Unity and Unreal (through Blender) and retargeting to humanoid\n  robots with [GMR](https:\u002F\u002Fgithub.com\u002FYanjieZe\u002FGMR), see [outputs](docs\u002FOUTPUTS.md); a demo about\n  10 % faster.\n- **[2026-10-22]** [v0.1.3](https:\u002F\u002Fgithub.com\u002Ftwehrbein\u002FExMR\u002Freleases\u002Ftag\u002Fv0.1.3): export for\n  Blender (AMASS SMPL-X file), `--snap_to_ground` and temporal smoothing.\n- **[2026-10-21]** Demo code and model weights released.\n- **[2026-10-20]** Paper on [arXiv](https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.26213).\n\n## Overview\n\nDetailed hand and foot articulation is important for animation and motion analysis, yet remains\nchallenging to recover from monocular video. ExMR (Extremity Motion Refinement) reconstructs 3D body,\nhand, and foot motion from monocular video: an initial temporal estimator predicts whole-body motion,\nafter which a foot refinement module (FootMR) and a hand refinement module (HandMR) revisit local\nevidence to predict residual joint rotations for the extremities.\n\n## Setup\n\nTested on Linux with an NVIDIA GPU (about 8 GB of GPU memory, driver >= 570 for CUDA 12.8).\nRequest access to [SAM 3D Body](https:\u002F\u002Fhuggingface.co\u002Ffacebook\u002Fsam-3d-body-dinov3) on Hugging Face\nfirst: its weights are gated and access is approved manually, which can take a while. Please see\n[installation](docs\u002FINSTALL.md) for details.\n\n## Quick Start\n\nTo try ExMR without installing it, the [online demo](https:\u002F\u002Fhuggingface.co\u002Fspaces\u002Ftwehrbein\u002FExMR)\nruns the default mode on up to 20 seconds of a video and returns the same outputs.\nOn Windows, the community app [RGB MoCap](https:\u002F\u002Fgithub.com\u002Ftoyxyz\u002Ftoyxyz_RGBMocap) runs ExMR with\na graphical interface, contact editing and retargeting to Mixamo, VRM and MMD characters.\n\nReconstruct the main person in a video:\n\n```bash\npython tools\u002Fdemo.py --video path\u002Fto\u002Fvideo.mp4      # moving camera\npython tools\u002Fdemo.py --video path\u002Fto\u002Fvideo.mp4 -s   # static camera (better world trajectory)\n```\n\nFor example, download the [dancing video](https:\u002F\u002Fwww.pexels.com\u002Fvideo\u002Fwoman-doing-dancing-exercise-in-the-garden-3690649\u002F)\nfrom Pexels (1906x1080, filmed with a static camera; the ground is flat) and run\n\n```bash\npython tools\u002Fdemo.py --video 3690649-hd_1906_1080_30fps.mp4 -s --snap_to_ground\n```\n\n![Demo output on the example video: SMPL-X in the camera view (left) and in the gravity-aligned world frame (right)](assets\u002Fdemo.gif)\n\nResults go to `outputs\u002F\u003Cvideo name>\u002F` (see [outputs](docs\u002FOUTPUTS.md)):\n\n* `results.pt`, `results.npz`: SMPL-X parameters and joints in the camera and in a gravity-aligned\n  world frame\n* `\u003Cvideo name>_amass.npz`: the world-frame motion as an AMASS SMPL-X file, e.g. for\n  [Blender](docs\u002FOUTPUTS.md#blender-and-amass), [Unity and Unreal](docs\u002FOUTPUTS.md#fbx-for-unity-and-unreal)\n  (FBX through Blender) or [humanoid robots](docs\u002FOUTPUTS.md#humanoid-robots-gmr)\n* `\u003Cvideo name>.bvh`: the world-frame motion as a [BVH](docs\u002FOUTPUTS.md#bvh) skeleton animation\n* rendered videos of the SMPL-X mesh in the camera view and in the world frame\n\n`--mode` trades speed for accuracy. Times are for the 37-second example video (1122 frames, `-s`)\non an RTX 4090, including model loading and rendering:\n\n| `--mode` | Person detector | 2D keypoints | Camera motion (moving camera) | Time |\n|---|---|---|---|---:|\n| `fast` | YOLO11m | RTMW-x | SimpleVO | 1&nbsp;min&nbsp;3&nbsp;s |\n| `balanced` (default) | YOLO11m | Sapiens2-1B 448x336 | SimpleVO | 1&nbsp;min&nbsp;17&nbsp;s |\n| `accurate` | YOLO11x | Sapiens2-1B 1024x768 | DPVO | 2&nbsp;min&nbsp;58&nbsp;s |\n\nIn our evaluation, Sapiens2-1B gives nearly the same accuracy at 448x336 and 1024x768; RTMW-x is\nslightly less accurate, mostly for the feet. With `-s` (static camera), no mode estimates camera\nmotion; otherwise `accurate` uses DPVO, which needs the optional DPVO install (see\n[camera motion](#camera-motion)).\n\nOther options:\n\n* `--detector`, `--pose_backend`, `--sapiens2_resolution`, `--vo`: override single parts of the\n  mode, e.g. `--mode accurate --vo simplevo` without DPVO.\n* `--start`, `--end`: only the part of the video between these times, in seconds (`83.5`) or as\n  in a video player (`1:23.5`, `1:02:03`); either can be left out. The outputs go to\n  `outputs\u002F\u003Cvideo name>_\u003Cstart>-\u003Cend>s\u002F` and cover only that part (see [outputs](docs\u002FOUTPUTS.md)).\n* `--f_mm`: the camera's focal length in mm as for a full-frame camera (35 mm equivalent), if you\n  know it; for phones about 13 (0.5x lens), 24-26 (1x), 48 (2x) or 77 (3x). Without it, ExMR assumes\n  a 53° diagonal field of view (about 43 mm). The focal\n  length is used by the model, SAM 3D Body and the camera motion estimation.\n* `--fps30`: resample the video to 30 fps first. Usually not needed; ExMR is trained on 30 fps\n  videos, so you may try it for videos far from 30 fps (e.g. 50 fps or more). For such videos it\n  also makes the demo faster, since fewer frames are processed. The results then follow the\n  frames of the resampled video.\n* `--snap_to_ground`: in long videos, the world-frame motion can drift vertically (the person\n  seems to fly or sink). If the scene has a single flat ground and nothing to stand on (no\n  stairs, chairs, ...), the body touches the ground at least every 0.5 s, about the hang time of\n  a jump; this option moves the world-frame motion vertically so that it does, as in\n  [PRIMAL](https:\u002F\u002Farxiv.org\u002Fabs\u002F2503.17544). Jumps with a longer flight are pulled down. The\n  demo suggests this option when the feet end up far above the ground where they touch it.\n* `--export_fps`: frame rate of the exported motion (`\u003Cname>_amass.npz`, `\u003Cname>.bvh`), e.g. 24 for\n  film or 60 for games, resampled from the video's (default). The other outputs keep the video's\n  frames.\n* `--smoothing {global,both,none}`: temporal smoothing of the output motion (Gaussian, ~33 ms).\n  By default (`global`) only the world-frame motion is smoothed; the camera-frame motion stays\n  raw, best aligned with the image. `both` also smooths the camera-frame motion (smoother, but\n  fast foot motion is followed slightly less closely in the image); `none` keeps the raw output.\n* `--no_render`: no videos, only the results (needs no nvdiffrast).\n\nIntermediate results are cached in `outputs\u002F\u003Cvideo name>\u002Fcache\u002F`, so rerunning the demo (e.g.\nwith `--no_render` removed, or another option) only recomputes what changed.\n\n### Camera motion\n\nExMR uses the camera's rotation over time to place the motion in the world frame. If the camera\ndoes not move, pass `-s`: this gives the best world trajectory. Otherwise the rotation is estimated\nfrom the video:\n\n* **SimpleVO** (default): a simple classical method from GVHMR (SIFT feature matches between every\n  8th frame and two-view geometry, on the CPU). It needs no extra installation and runs while the\n  GPU stages run, so it adds no time.\n* **DPVO** (`--vo dpvo`, used by `--mode accurate`):\n  [Deep Patch Visual Odometry](https:\u002F\u002Fgithub.com\u002Fprinceton-vl\u002FDPVO), a learned and widely used\n  method that tracks every frame on the GPU. It needs an optional source build\n  ([installation](docs\u002FINSTALL.md)), adds about 1-2.5 s per 100 frames on an RTX 4090 (1080p to\n  4K), and repeated runs differ slightly.\n\nIf the world-frame motion looks wrong with SimpleVO, try DPVO.\n\n### Python\n\nThe demo is a thin wrapper around `run_video`, which you can also call from your own code:\n\n```python\nfrom exmr.pipeline import Options, run_video\n\nresults = run_video(\"video.mp4\", \"outputs\u002Fvideo\", Options(static_cam=True, render=False))\nbody_pose = results[\"smplx_global\"][\"body_pose\"]  # (L, 63), see docs\u002FOUTPUTS.md\n```\n\n`Options` has the same settings as the demo's command-line options (default: `balanced` mode;\n`start` and `end` in seconds). The model files are read from `checkpoints\u002F` (or\n`$EXMR_CHECKPOINT_DIR`). `exmr.pipeline` also exposes the pieces `run_video` is built from, e.g.\nfor a pipeline with preloaded models: `hand_boxes`, `model_inputs`, `compute_joints`,\n`save_results` and `render`.\n\n## How it works\n\n`run_video` (`exmr\u002Fpipeline.py`) runs these steps and caches the result of each one:\n\n| Step | Code |\n|---|---|\n| Frame extraction | `exmr\u002Fpreprocessing\u002Fvideo.py` |\n| Person detection and tracking (YOLO11 + ByteTrack) | `exmr\u002Fpreprocessing\u002Ftracker.py` |\n| 2D keypoints (Sapiens2 or RTMW) | `exmr\u002Fpreprocessing\u002Fkeypoints\u002F` |\n| Body image features (SAM 3D Body) | `exmr\u002Fpreprocessing\u002Fbody_features.py` |\n| Hand image features (HaMeR) | `exmr\u002Fpreprocessing\u002Fhand_features.py` |\n| Camera rotations (SimpleVO or DPVO) | `exmr\u002Fpreprocessing\u002Fvisual_odometry.py` |\n| ExMR: initial whole-body estimate, then FootMR and HandMR | `exmr\u002Fmodel\u002Fexmr.py`, with `body_net.py` and `refiners.py` |\n| World-frame trajectory and post-processing (static joints, camera drift, ground contact, IK) | `exmr\u002Fmodel\u002Fglobal_traj.py` |\n| Temporal smoothing | `exmr\u002Fmodel\u002Fexmr.py`, `exmr\u002Fgeometry\u002Fsmoothing.py` |\n| Export for Blender and robot retargeting (AMASS SMPL-X file) and BVH | `exmr\u002Fexport.py` |\n| Rendered videos | `exmr\u002Fvis\u002F` |\n\n## Citation\n\nIf you find this work useful, please cite our papers and the original [GVHMR](https:\u002F\u002Fgithub.com\u002Fzju3dv\u002FGVHMR) work:\n\n```bibtex\n@Article{wehrbein26exmr,\n    author    = {Wehrbein, Tom and Rosenhahn, Bodo},\n    title     = {{ExMR}: Extremity Motion Refinement for Monocular Human Motion Capture},\n    journal   = {arXiv preprint arXiv:2610.26213},\n    year      = {2026},\n}\n```\n\n```bibtex\n@InProceedings{wehrbein26footmr,\n    author    = {Wehrbein, Tom and Rosenhahn, Bodo},\n    title     = {Improving 3D Foot Motion Reconstruction in Markerless Monocular Human Motion Capture},\n    booktitle = {International Conference on 3D Vision (3DV)},\n    year      = {2026},\n    pages     = {871--881},\n    doi       = {10.1109\u002F3DV69130.2026.00088},\n}\n```\n\n```bibtex\n@InProceedings{shen2024gvhmr,\n    author    = {Shen, Zehong and Pi, Huaijin and Xia, Yan and Cen, Zhi and Peng, Sida and Hu, Zechen and Bao, Hujun and Hu, Ruizhen and Zhou, Xiaowei},\n    title     = {World-Grounded Human Motion Recovery via Gravity-View Coordinates},\n    booktitle = {SIGGRAPH Asia Conference Proceedings},\n    year      = {2024},\n}\n```\n\n## License\n\nThis code is a derivative work of [GVHMR](https:\u002F\u002Fgithub.com\u002Fzju3dv\u002FGVHMR) and is released for\neducational, research and non-profit purposes only, see [LICENSE](LICENSE). It builds on third-party\nmodels and code under their own licenses, see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\nPerson detection and tracking use [Ultralytics YOLO](https:\u002F\u002Fgithub.com\u002Fultralytics\u002Fultralytics)\n(AGPL-3.0).\nExMR uses [SAM 3D Body](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fsam-3d-body) under the SAM License,\nwhich requires publications of results obtained with it to acknowledge the use of SAM materials.\n","ExMR 是一个从单目视频重建高精度三维人体全身（含手、足）运动的开源工具，基于 SMPL-X 参数化模型，支持世界坐标系对齐与地面接触建模。其核心采用两阶段架构：先由时序模型估计整体人体运动，再通过独立的手部（HandMR）和足部（FootMR）细化模块提升末端关节旋转精度；支持导出 BVH、FBX（经 Blender 中转）及机器人可读格式，适配 Blender、Unity、Unreal 引擎及人形机器人运动重定向场景。",2,"2026-11-24 04:35:07","CREATED_QUERY"]