Skip to content

Commit d16c043

Browse files
committed
Fix render joints
1 parent d54aa8b commit d16c043

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mGPT/render/blender/joints.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def __init__(self,
5858
if jointstype == "mmm":
5959
self.kinematic_tree = mmm_kinematic_tree
6060
self.joints = mmm_joints
61-
self.joinst.append("")
6261
elif jointstype == "humanml3d":
6362
self.kinematic_tree = humanml3d_kinematic_tree
6463
self.joints = humanml3d_joints
@@ -337,9 +336,8 @@ def prepare_joints(joints,
337336
data = joints
338337

339338
# Rescaling, shift axis and swap left/right
340-
if jointstype == "humanml3d":
339+
if jointstype in ["humanml3d", "mmm"]:
341340
data = data * mmm_to_smplh_scaling_factor
342-
data[..., 1] = - data[..., 1]
343341

344342
# Swap axis (gravity=Z instead of Y)
345343
data = data[..., [2, 0, 1]]

prepare/requirements_render.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ matplotlib
44
tqdm
55
hydra-core
66
six
7+
natsort

0 commit comments

Comments
 (0)