Native Windows video motion capture with ExMR, FlowHMR and GVHMR, contact correction, humanoid retargeting, and FBX/VMD export.
Python
Refresh Sapiens2 CPU-loading comments and source manifest
toyxyze3558d773f81
diff --git a/SOURCE_MANIFEST.json b/SOURCE_MANIFEST.jsonindex 8f96ed5..9ac008e 100644--- a/SOURCE_MANIFEST.json+++ b/SOURCE_MANIFEST.json@@ -1986,8 +1986,8 @@},{"path": "third_party/ExMR/exmr/preprocessing/keypoints/sapiens2.py",- "bytes": 9204,- "sha256": "06db9c9307143939229d92e696401c3628853c97d19778cddb540adbb67f66b1"+ "bytes": 9300,+ "sha256": "1eecc3f92b4ee2c7cbd32234736927f934b76ac2820bb44ef563e02ce2a7bf8e"},{"path": "third_party/ExMR/exmr/preprocessing/tracker.py",diff --git a/third_party/ExMR/exmr/preprocessing/keypoints/sapiens2.py b/third_party/ExMR/exmr/preprocessing/keypoints/sapiens2.pyindex 50dc957..b076a41 100644--- a/third_party/ExMR/exmr/preprocessing/keypoints/sapiens2.py+++ b/third_party/ExMR/exmr/preprocessing/keypoints/sapiens2.py@@ -73,9 +73,9 @@ class Sapiens2Keypoints:self.num_workers = num_workersh, w = map(int, resolution.split("x"))- # built on the GPU: initializing the weights on the CPU takes ~8 s, and the checkpoint- # replaces them anyway- # Building and deserializing models can result in double usage of f32 VRam, which is not user-friendly for low memory users.+ # Build and load weights on the CPU to avoid holding the model and+ # checkpoint tensors together in VRAM. Move the loaded model to the+ # requested device below; inference precision remains unchanged.with torch.device("cpu"):model = MODELS.build(copy.deepcopy(MODEL_CFG))model.load_state_dict(load_file(str(checkpoint), device="cpu"))