Skip to content

Efficient way to get ManoLayer's jacobian matrix  #15

@milkcat0904

Description

@milkcat0904

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions