hassony2 / manopth

MANO layer for PyTorch, generating hand meshes as a differentiable layer
GNU General Public License v3.0
601 stars 104 forks source link

Orientation of the model #21

Open linkinSimon opened 2 years ago

linkinSimon commented 2 years ago

Hi, @hassony2 , thanks for sharing the repo.

How can I change the orientation of the hand around the origin without changing the translation? Because every time I change the first three params (rotation vector) in random_pose in examples/manopth_mindemo.py, it not only rotate around the origin but it also has some translation. Is transformation matrix coupled with hand pose in some way ?

EX : examples/manopth_mindemo.py 1. random_pose = torch.rand(batch_size, ncomps + 3) *0 random_pose[0,0] = 0 random_pose[0,1] = 0 random_pose[0,2] = 0 Screenshot from 2021-12-17 17-00-06

2. random_pose = torch.rand(batch_size, ncomps + 3) *0 random_pose[0,0] = 0.5 random_pose[0,1] = 0.5 random_pose[0,2] = 0.5 Screenshot from 2021-12-17 17-00-48

Thank you! Best