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

how to use joint angle limit #13

Open
yfynb1111 opened this issue Apr 8, 2022 · 2 comments
Open

how to use joint angle limit #13

yfynb1111 opened this issue Apr 8, 2022 · 2 comments

Comments

@yfynb1111
Copy link

Thanks to your shareing!
I see the defined joint angle limit,but cant find where you use the joint angle limit.could you share how to use it?

@gmntu
Copy link
Owner

gmntu commented Apr 8, 2022

The joint angle limit self.alim_ was used during the training of the network to regularize the joint angle parameter (alpha)

Untitled
where L and U are the lower and upper bound of the limit respectively.

For example:

def compute_ang_limit(self, ang):
    # ReLU(x)=max(0,x)
    min_ = self.ReLU(self.alim_[:,0]-ang)
    max_ = self.ReLU(ang-self.alim_[:,1])

    return torch.sum(min_) + torch.sum(max_)

@yfynb1111
Copy link
Author

The joint angle limit self.alim_ was used during the training of the network to regularize the joint angle parameter (alpha)

Untitled where L and U are the lower and upper bound of the limit respectively.

For example:

def compute_ang_limit(self, ang):
    # ReLU(x)=max(0,x)
    min_ = self.ReLU(self.alim_[:,0]-ang)
    max_ = self.ReLU(ang-self.alim_[:,1])

    return torch.sum(min_) + torch.sum(max_)

Thank you!! Your change from pca to Dof is a excellent idea!now mano model is easier to use.

umm, I try to use optimization based method to estimate 3D hand pose on the dof model,how do you about it?

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