vchoutas / smplx

SMPL-X
https://smpl-x.is.tue.mpg.de/
Other
1.78k stars 303 forks source link

Body_Pose shape in output pkl file of smpl+h to smplx #133

Open KevinRoller opened 2 years ago

KevinRoller commented 2 years ago

After passing smpl+h mesh into the transfer_model module with the smplh2smplx config file, I got a pkl output file that has body_pose tensor with shape [1,21,3,3], which is very strange. Because the smplx addons's add pose function on blender require a body_shape tensor that is in the shape of [1,21,3] (other pose-like tensors faced the same issue with the fourth dimension size 3). Does anyone have any idea about the format and its meaning? Please give me some clue.

Travvy88 commented 1 year ago

@KevinRoller hi! Did you find an answer?

MOHeller commented 1 year ago

Is it possible that in that instance 3x3 rotation matrices rather than axis-angle representations are used to describe the pose? Should be easy to figure out from the data; if that was the case, you can use any of the rotation matrix to axis angle functions to provide the alternative axis-angle representation of the data (e.g. Kornia: https://kornia.readthedocs.io/en/latest/geometry.conversions.html#kornia.geometry.conversions.rotation_matrix_to_angle_axis)