Skip to content

Retarget human motion from video to an Adobe Mixamo-rigged 3D character.

Python

Download fallback YOLO weights into weights/yolo/

MaxLiu51a87a2b36eb
diff --git a/motion2mixamorig/checks.py b/motion2mixamorig/checks.py
index 017dcdf..11335ab 100644
--- a/motion2mixamorig/checks.py
+++ b/motion2mixamorig/checks.py
@@ -40,7 +40,8 @@ def _person_detector():
export_gvhmr_env()
ckpt = WEIGHTS / "yolo" / "yolov8x.pt"
- _yolo = YOLO(str(ckpt) if ckpt.exists() else "yolov8n.pt")
+ # Fallback model goes under weights/ too, not into whatever the working directory is.
+ _yolo = YOLO(str(ckpt) if ckpt.exists() else str(WEIGHTS / "yolo" / "yolov8n.pt"))
return _yolo