smplx icon indicating copy to clipboard operation
smplx copied to clipboard

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

Open KevinRoller opened this issue 1 year ago • 2 comments

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.

KevinRoller avatar Aug 25 '22 01:08 KevinRoller

@KevinRoller hi! Did you find an answer?

Travvy88 avatar Dec 20 '22 09:12 Travvy88

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)

MOHeller avatar Apr 13 '23 12:04 MOHeller