Skip to content
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

Efficient way to get ManoLayer's jacobian matrix #15

Open
milkcat0904 opened this issue Feb 23, 2021 · 1 comment
Open

Efficient way to get ManoLayer's jacobian matrix #15

milkcat0904 opened this issue Feb 23, 2021 · 1 comment

Comments

@milkcat0904
Copy link

Hello, thx for sharing your code, I got some issues about calculate ManoLayer's jacobian matrix in my project.
I use pytorch official api to get ManoLayer's jacobian but it takes too much time, about 0.2s each sample 1 Nvidia RTX 3090
Here is my code:

from torch.autograd.functional import jacobian
 j = jacobian(mano_layer.forward, (theta, beta)) 

btw,
I only calculate joints' jacobian matrix, if add verts' jacobian matrix, it cost a larger time.
Is there any way to get jacobian more efficient?
How could I get ManoLayer's analytical differential expression?

@hassony2
Copy link
Owner

Hi @milkcat0904,

Sorry for the late answer !
Computing vertices and joints in mano is done jointly and it is not easy (if even feasible) to reduce the code only to joint computations.
So unfortunately at this time no good solution for speeding up the computations comes to mind !

Best,

Yana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants