lev1khachatryan / Tex-An_Mesh

Fully textured and animatable human body mesh reconstruction from a single image
GNU General Public License v3.0
179 stars 54 forks source link

mesh alignment got upside down result #10

Closed Holmes-Alan closed 2 years ago

Holmes-Alan commented 2 years ago

Hello there, thanks for the amazing document! I met a problem when I tried to align the PIFu model to the SMPL model. In the first step, I can align them well to the zero pose state as, image

However, when I use another shape and pose vector to edit the motion, I got the result that the model is upside down and backward. It seems that the y and z axes are reverse as, image I tried to change the sign of y and z as you mentioned in the code like

pifu_vertices_rotated = pifu_vertices.copy() pifu_vertices_rotated[:,1] = -pifu_vertices_rotated[:,1] pifu_vertices_rotated[:,2] = -pifu_vertices_rotated[:,2]

it does not work. I also tried to add a camera transformation that let the model to rotate 180 along the x-axis, it also does not work.

Can you tell me what the problem is? Thank you!