Native Windows video motion capture with ExMR, FlowHMR and GVHMR, contact correction, humanoid retargeting, and FBX/VMD export.
Python
Label PEAR support as experimental
toyxyzab80ced73287
diff --git a/README.md b/README.mdindex d9afc47..b858a9e 100644--- a/README.md+++ b/README.md@@ -137,7 +137,7 @@ do not put passwords or account tokens in the agent chat.3. Review the motion, edit contacts if needed and **Apply Correction**.4. Export FBX, or import a character, retarget the motion and export it.-For **PEAR · Live**, choose a webcam or open a video, then click **Start Live+For **PEAR · Live (Experimental)**, choose a webcam or open a video, then click **Start LiveTracking**. It provides a bone preview without recording, correction or export.See the [PEAR guide](docs/models/PEAR.md) for its controls.@@ -149,7 +149,7 @@ motion quality was lower than **ExMR**. It does not support finger tracking.| Model / original project | Body representation | Fingers | Setup and use || --- | --- | --- | --- |-| [PEAR](https://github.com/Pixel-Talk/PEAR) · live preview | SMPL-X / FLAME | Included | [PEAR guide](docs/models/PEAR.md) |+| [PEAR](https://github.com/Pixel-Talk/PEAR) · experimental live preview; may be unstable | SMPL-X / FLAME | Included | [PEAR guide](docs/models/PEAR.md) || [ExMR](https://github.com/twehrbein/ExMR) | SMPL-X | Included | [ExMR guide](docs/models/EXMR.md) || [FlowHMR](https://github.com/flowhmr/flowhmr) | SMPL-H | Included | [FlowHMR guide](docs/models/FLOWHMR.md) || [GVHMR](https://github.com/zju3dv/GVHMR) | SMPL-X | Optional HandFlow add-on | [GVHMR guide](docs/models/GVHMR.md) |diff --git a/SOURCE_MANIFEST.json b/SOURCE_MANIFEST.jsonindex cfca105..6209eb4 100644--- a/SOURCE_MANIFEST.json+++ b/SOURCE_MANIFEST.json@@ -26,8 +26,8 @@},{"path": "README.md",- "bytes": 10187,- "sha256": "3724de7094cde62a721598faffbfe1f7e063f5f01794129581d5e5a45e92a79d"+ "bytes": 10232,+ "sha256": "63d449f2040bcb70642bf99b40b94b5dff917aa4b59036899abb71f302bc8d3f"},{"path": "RGBMoCap.cmd",@@ -96,8 +96,8 @@},{"path": "docs/AGENT_GUIDE.md",- "bytes": 38876,- "sha256": "02a866bd8c217360d9e71887bfe1008d12f5b3bf144357b745ca87087fdea7e3"+ "bytes": 39037,+ "sha256": "069de4070e7163226aaa76aa14b4887f83949d57980ccd291cf515c94f4dc665"},{"path": "docs/BUILD.md",@@ -126,8 +126,8 @@},{"path": "docs/USER_GUIDE.md",- "bytes": 45953,- "sha256": "1edebd2e80c44b5954675fe953173e351a5e3f402edab15b10173cc0439714ec"+ "bytes": 46042,+ "sha256": "5f94910678bf6defa3cc0b4fa4c4bffdf9e3c0e5d488425f3627ebce17b7c78e"},{"path": "docs/VALIDATION.md",@@ -171,8 +171,8 @@},{"path": "docs/models/PEAR.md",- "bytes": 11649,- "sha256": "3ac4f37547c15e48bba444514ec4d59204e2c72bed4c5dc51dbe46a93de16554"+ "bytes": 11738,+ "sha256": "57a26ed95be324d184ea9dc582db733553ee83429f727e99634c2dfb675db809"},{"path": "docs/models/PROMPTHMR.md",@@ -181,8 +181,8 @@},{"path": "docs/models/README.md",- "bytes": 5892,- "sha256": "07e197c0203bd6a006d809d76e500fd0f190beefc26274fc3d11a6896dce59aa"+ "bytes": 5922,+ "sha256": "3be817b61b7bc4d955796957990cb34e400e184c5fd02a72d30de616f391a358"},{"path": "docs/samples/character-retargeting.jpg",@@ -1411,8 +1411,8 @@},{"path": "mocap/model_guide.py",- "bytes": 9200,- "sha256": "9d3c46b118eba16d1c514b17509513d5b508d50fc6fa5edcbb3a3c39cbbfbe76"+ "bytes": 9267,+ "sha256": "57aae368202a75f565168d9dff6c98154d306f9b099c2d1d4bd86f199ea07e44"},{"path": "mocap/model_session.py",@@ -1426,8 +1426,8 @@},{"path": "mocap/motion_tools.py",- "bytes": 11043,- "sha256": "7c74a02b8417618385aaa349c3d04d6f506139952fd3dcc62a8fe42f735ae48f"+ "bytes": 11058,+ "sha256": "17a8d9bb43ce84075d77f6451bd9021d311b6cfe903a36706712f61db9fb286f"},{"path": "mocap/multilevel_contacts.py",@@ -1536,8 +1536,8 @@},{"path": "mocap/pear_ui.py",- "bytes": 29232,- "sha256": "670920bf957604bb9f721dbbce8a7658d865693d77a109fb1a54e922cc70563c"+ "bytes": 29236,+ "sha256": "686bf359438d8175419bf76f6749780c0f2a36960a0a30df01393c65695cd4b8"},{"path": "mocap/people_store.py",diff --git a/docs/AGENT_GUIDE.md b/docs/AGENT_GUIDE.mdindex 4b4b560..63ea135 100644--- a/docs/AGENT_GUIDE.md+++ b/docs/AGENT_GUIDE.md@@ -272,6 +272,9 @@ Inspect [BUILD.md](BUILD.md), [VALIDATION.md](VALIDATION.md) and relevant code b## PEAR live mode+PEAR support is **experimental**. Tracking and pose estimates may be unstable;+describe it as an experimental preview, not a production-ready capture workflow.+Close the app and run `install.cmd`. The base installer also downloadspinned source, pure-Python PyTorch3D utilities and RoMa into `runtime_pear/`,validates CUDA kernels, and preserves the shared runtime packages. Do not installdiff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.mdindex 03f1893..155b028 100644--- a/docs/USER_GUIDE.md+++ b/docs/USER_GUIDE.md@@ -634,10 +634,12 @@ terms; see [Third-party notices](../THIRD_PARTY_NOTICES.md).## PEAR live preview+**Experimental support. Tracking and pose estimates may be unstable.**+Run `install.cmd` with the app closed; PEAR support is included. PEAR reusesthe shared runtime and adds only pinned source/utilities; no compiler is required.Prepare its checkpoint and registered SMPL-X 2020/FLAME bundle in Model Manager.-Select **PEAR · Live** and click **Start Live Tracking** to load the models.+Select **PEAR · Live (Experimental)** and click **Start Live Tracking** to load the models.**Stop** ends tracking and releases the models and webcam. With **Webcam: None**,open a video and seek/play its timeline to infer the current frame. Alternatively,select a connected webcam before starting. While tracking is running, inputdiff --git a/docs/models/PEAR.md b/docs/models/PEAR.mdindex 1843e3d..064b9f6 100644--- a/docs/models/PEAR.md+++ b/docs/models/PEAR.md@@ -1,5 +1,7 @@# PEAR: live pose preview+**Experimental support. Tracking and pose estimates may be unstable.**+[Original PEAR project](https://github.com/Pixel-Talk/PEAR) · [Official checkpoint](https://huggingface.co/BestWJH/PEAR_models)[Paper and BibTeX](../CITATIONS.md#pear) · [Upstream source license](https://github.com/Pixel-Talk/PEAR/blob/8e915f8c3dfae4063d66763e6296b2b0b02eb303/LICENSE.txt)@@ -25,7 +27,7 @@ only the input. Models remain loaded until Stop, leaving PEAR or app close.pure-Python PyTorch3D utilities. It checks CUDA operations and reuses the existingshared Python/Torch runtime without upgrading its packages. No CUDA Toolkit,C++ compiler, separate Torch installation or native PyTorch3D build is needed.-2. Open `RGBMoCap.cmd`, select **PEAR · Live**, and open **Model Manager**.+2. Open `RGBMoCap.cmd`, select **PEAR · Live (Experimental)**, and open **Model Manager**.3. Download/import `pear_model.pt` and **PEAR Person Detection / YOLOv8s**(`yolov8s.pt`). Model Manager verifies the supported official files.4. In the geometry row, use **Manual Download**. Follow the upstream Preparationdiff --git a/docs/models/README.md b/docs/models/README.mdindex fe341c4..89bc963 100644--- a/docs/models/README.md+++ b/docs/models/README.md@@ -11,7 +11,7 @@ saved selection. Only implemented tools appear in the list.| GVHMR | One video; SMPL-X | Optional HandFlow | [GVHMR](GVHMR.md) || MAMMA | Two or more synchronized fixed-camera videos; SMPL-X | Included | [MAMMA](../MAMMA.md) || PromptHMR | One fixed-camera video; jointly reconstructed people; SMPL-X | Not generated | [PromptHMR](PROMPTHMR.md) |-| PEAR | Live preview of one person from a webcam or video timeline | Included | [PEAR](PEAR.md) |+| PEAR | Experimental live preview of one person from a webcam or video timeline; may be unstable | Included | [PEAR](PEAR.md) |One-video input does not mean one-person output. ExMR, FlowHMR and GVHMR canprocess checked people independently after **Find person**. Without discovery,diff --git a/mocap/model_guide.py b/mocap/model_guide.pyindex b4d20cf..cde7560 100644--- a/mocap/model_guide.py+++ b/mocap/model_guide.py@@ -25,7 +25,7 @@ PROJECT_URLS = {'exmr': 'https://github.com/twehrbein/ExMR',}DESCRIPTIONS = {- 'pear':'Live single-person body and finger bone preview from a webcam or the current video frame. Fixed bone lengths are calibrated once; Reset Bones recalibrates from the displayed pose without reloading models. World Position is on by default; off fixes pelvis translation while preserving rotation. Body mesh is not computed per live frame. Select a webcam above the video, or choose None for video, then click Start Live Tracking. Stop releases models and the webcam. Uses YOLOv8s person detection; detector boxes can affect the resulting pose. Rotation and One Euro Filter apply to both sources. Adjustable One Euro smoothing reduces tremors with some motion-dependent lag and no extra inference. Seeks start from the selected frame; filtering continues during playback. No Find person, recording, Motion Correction, retargeting or motion export in this live mode. Pelvis placement assumes a fixed camera, not a calibrated world. Support files are included in install.cmd and update.cmd, reusing the shared runtime without upgrading its packages or requiring a CUDA compiler. Prepare the checkpoint and registered SMPL-X 2020/FLAME geometry bundle in Model Manager. See docs/models/PEAR.md.',+ 'pear':'Experimental support. Tracking and pose estimates may be unstable. Live single-person body and finger bone preview from a webcam or the current video frame. Fixed bone lengths are calibrated once; Reset Bones recalibrates from the displayed pose without reloading models. World Position is on by default; off fixes pelvis translation while preserving rotation. Body mesh is not computed per live frame. Select a webcam above the video, or choose None for video, then click Start Live Tracking. Stop releases models and the webcam. Uses YOLOv8s person detection; detector boxes can affect the resulting pose. Rotation and One Euro Filter apply to both sources. Adjustable One Euro smoothing reduces tremors with some motion-dependent lag and no extra inference. Seeks start from the selected frame; filtering continues during playback. No Find person, recording, Motion Correction, retargeting or motion export in this live mode. Pelvis placement assumes a fixed camera, not a calibrated world. Support files are included in install.cmd and update.cmd, reusing the shared runtime without upgrading its packages or requiring a CUDA compiler. Prepare the checkpoint and registered SMPL-X 2020/FLAME geometry bundle in Model Manager. See docs/models/PEAR.md.','prompthmr': 'Reconstructs multiple people together from one video. In our subjective tests, it could give more accurate relative placement and interactions, but overall motion quality was lower than ExMR. Contacts, depth and intersections can still be wrong. Fixed cameras only in this Windows integration. People defaults to 2; 0 detects automatically, up to 8. Find person is not needed. Interaction Prompt defaults on; off follows the official default video path. Body motion uses SMPL-X. No finger tracking; untracked fingers use a fixed neutral pose. Supports the usual optional foot/hand contact correction, retargeting and FBX export. Requires Setup_PromptHMR.cmd and separate weights. Non-commercial scientific research license. See docs/models/PROMPTHMR.md.','mamma': 'Multi-view reconstruction of one or several people from two or more synchronized fixed-camera videos of the same performance. No fixed camera-count maximum; practical capacity depends on available RAM and VRAM. Detects people automatically; Find person is not needed. Uses SAM 2.1 masks, FP32 landmarks and VGGT cameras, or your compatible camera calibration. Body and finger motion, original results and contact-corrected results are preserved. Best suited to views that complement each other; occlusion and bad masks can cause errors. Slower than single-video methods. Requires the separate Setup_MAMMA.cmd runtime and registered restricted-use models. See Model Manager > Runtime Setup and docs/MAMMA.md.','gvhmr': 'Lowest overall motion quality in our tests, but sometimes better for unusual poses such as backflips. 'diff --git a/mocap/motion_tools.py b/mocap/motion_tools.pyindex 9fa97c6..221e5c6 100644--- a/mocap/motion_tools.py+++ b/mocap/motion_tools.py@@ -23,7 +23,7 @@ class MotionTool:*(("correct",) if correction else ()), "export"]-MOTION_TOOLS = {"pear": MotionTool("pear", "PEAR · Live", (), live=True),"gvhmr": MotionTool("gvhmr", "GVHMR", ("track", "gvhmr"), ("pva", "refine")),+MOTION_TOOLS = {"pear": MotionTool("pear", "PEAR · Live (Experimental)", (), live=True),"gvhmr": MotionTool("gvhmr", "GVHMR", ("track", "gvhmr"), ("pva", "refine")),"flowhmr": MotionTool("flowhmr", "FlowHMR", ("track", "flow_camera", "flow_features", "flowhmr")),"exmr": MotionTool("exmr", "ExMR", ("track", "exmr_preprocess", "exmr_features", "exmr")),"mamma": MotionTool("mamma", "MAMMA", ("mamma_prepare","mamma_masks","mamma_landmarks","mamma_camera","mamma_fit","mamma_publish")),diff --git a/mocap/pear_ui.py b/mocap/pear_ui.pyindex dd667a6..a6bb61c 100644--- a/mocap/pear_ui.py+++ b/mocap/pear_ui.py@@ -225,7 +225,7 @@ class PearWorkspace:self.mamma_thumbnails.hide()self.timeline_help_dialog.setText("PEAR live video preview\n\nOpen a video or select a webcam, then click Start Live Tracking. Stop releases the models and webcam.\n\nFor video, click or drag the frame ruler to infer the current frame. During playback, the processed video frame and its pose appear together with a small delay. Old requests are skipped. Pause or seek to inspect an exact frame.\n\nSelecting a webcam disables video timeline controls. No motion is recorded or exported in this mode.")self.video_overlay.hide();self.slider.contact_edit_enabled=False- self.status.setText("PEAR live preview · Choose an input, then click Start Live Tracking.")+ self.status.setText("PEAR experimental preview · Tracking and pose estimates may be unstable.")self.pear_header.show();self.model_pages.setCurrentWidget(self.pear_page);self.model_pages.show()for widget in (self.people_panel,self.find_person_button,self.correction_group,self.compute_mode.parentWidget(),self.run_button,self.mesh_button,self.cancel_button,self.htd_refine,self.refine_description,self.footmr_refine,self.handflow_refine,self.footmr_description,self.refine_preview_note,self.analyze_button):widget.hide()self.models_group.setTitle('PEAR Models');self.readiness.setText('PEAR: '+('models ready' if not unavailable else str(len(unavailable))+' files missing'))