-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code to convert the 9 numbers in m['pose_N'][0,1]
to (72,)==smpl.pose.shape
?
#39
Comments
Hi, you can use the following to convert rotation matrix to vector. https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.transform.Rotation.html I haven't tested but a combination of 'from_matrix()' and 'as_rotvec()' should do the job. |
@bharat-b7 Thanks! Will check it out. But does it deal with the issue of "dependent rotations" ? ie. I mean where global rotation of the wrist depends on local rotation of all joints "above" the wrist on the kinematic tree (ie. elbow, shoulder)? |
At least, this is an issue unless someone pre-defined the order of the rotations from |
Hi @neonb88, I am facing the same issue. Did this answer work for you? If not, could you please share what worked. Thanks in advance. |
Using the following worked for me
|
Hi @bharat-b7 ,
I'm sure you are quite busy, but 10 minutes of your time could potentially save me hours. Is there code to convert the
(3,3)
numbers inm['pose_N'][0,1]
to the 3 ((3,)
) angles per joint (72 pose parameters) used by SMPL?#24 (comment)
Thanks,
Nathan
The text was updated successfully, but these errors were encountered: