S2HAND icon indicating copy to clipboard operation
S2HAND copied to clipboard

Rotation representation

Open zhangy76 opened this issue 3 years ago • 6 comments

Hi,

Thank you for presenting this intereting work!

I notice the output of your model is in axis-angle representation. I wonder how did you convert them to Azimuth, Pitch, and Roll and impose the feasible range loss?

zhangy76 avatar Aug 09 '21 21:08 zhangy76

Hi.

In our experiments, we directly use MANO's pose parameters as Azimuth, Pitch, and Roll.

TerenceCYJ avatar Aug 15 '21 12:08 TerenceCYJ

Thanks for the reply! May I ask where did you define the Azimuth, Pitch, and Roll parameters in the code?

zhangy76 avatar Aug 16 '21 06:08 zhangy76

Please refer to examples/losses.py#L143, examples/traineval_util.py#L378 and examples/utils/freihandnet.py#L208.

TerenceCYJ avatar Aug 16 '21 14:08 TerenceCYJ

Thanks. Could you please also point out where you define the function to compute the rotation matrix using Azimuth, Pitch, and Roll? Since I only find a "rodrigues" function, I am confused about the rotation representation.

zhangy76 avatar Aug 16 '21 18:08 zhangy76

Please also refer to examples/utils/hand_3d_model.py#L59.

TerenceCYJ avatar Aug 16 '21 18:08 TerenceCYJ

examples/utils/hand_3d_model.py#L59 tries to obtain 3D hand mesh given hand model parameters. In this part, the only function to compute rotation matrix given hand pose parameters is "rodrigues", which computes rotation matrix from axis-angle pose parameters but not Azimuth, Pitch, and Roll. I wonder if my understanding is correct?

zhangy76 avatar Aug 16 '21 19:08 zhangy76