Skip to content

Native Windows video motion capture with ExMR, FlowHMR and GVHMR, contact correction, humanoid retargeting, and FBX/VMD export.

Python

Avoid Unicode console crash in FlowHMR timing output

Justin Johnf895adbb841a
diff --git a/SOURCE_MANIFEST.json b/SOURCE_MANIFEST.json
index 9db9008..c673c96 100644
--- a/SOURCE_MANIFEST.json
+++ b/SOURCE_MANIFEST.json
@@ -6801,8 +6801,8 @@
},
{
"path": "third_party/FlowHMR/third_party/fast-sam-3d-body/sam_3d_body/models/meta_arch/sam3d_body.py",
- "bytes": 176414,
- "sha256": "011f503df0663b2b5e4267b06e4bd5e680c65fd730685ad58f796d1a405fb538"
+ "bytes": 176166,
+ "sha256": "33d6c8969d69d3b6185df831986387f76f888293eebb7378d30ba29cbb4e8a40"
},
{
"path": "third_party/FlowHMR/third_party/fast-sam-3d-body/sam_3d_body/models/modules/__init__.py",
diff --git a/third_party/FlowHMR/third_party/fast-sam-3d-body/sam_3d_body/models/meta_arch/sam3d_body.py b/third_party/FlowHMR/third_party/fast-sam-3d-body/sam_3d_body/models/meta_arch/sam3d_body.py
index 3b744f6..07f6d27 100644
--- a/third_party/FlowHMR/third_party/fast-sam-3d-body/sam_3d_body/models/meta_arch/sam3d_body.py
+++ b/third_party/FlowHMR/third_party/fast-sam-3d-body/sam_3d_body/models/meta_arch/sam3d_body.py
@@ -3280,7 +3280,7 @@ class SAM3DBody(BaseModel):
_ik_timing['projection'] = (time.time() - t_proj) * 1000
# Print IK timing
- print(f" ┌─────────────────────────────────────────────────────────────")
+ print(" +-------------------------------------------------------------+")
print(f" | [postprocess_ik breakdown]:")
print(f" | - criteria_fusion: {_ik_timing['criteria_fusion']:.3f} ms (hand fusion condition computation)")
print(f" | - criteria_prep: {_ik_detail.get('criteria_prep', 0):.3f} ms (condition preparation)")
@@ -3292,7 +3292,7 @@ class SAM3DBody(BaseModel):
print(f" | - projection: {_ik_timing['projection']:.3f} ms (2D projection)")
total_ik = sum(_ik_timing.values())
print(f" | total: {total_ik:.3f} ms")
- print(f" └─────────────────────────────────────────────────────────────")
+ print(" +-------------------------------------------------------------+")
print(f" [run_inference] step3_postprocess_ik: {time.time() - t0:.4f}s")
print(f" [run_inference] TOTAL: {time.time() - run_inference_start:.4f}s")