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

Supplying shape parameters don't seem to have any effect. #10

Open
shash29-dev opened this issue Mar 18, 2024 · 0 comments
Open

Supplying shape parameters don't seem to have any effect. #10

shash29-dev opened this issue Mar 18, 2024 · 0 comments

Comments

@shash29-dev
Copy link

shash29-dev commented Mar 18, 2024

Thanks for sharing the code.
Supplying shape parameters don't seem to have any effect.

Following if else condition reads th_beta instead of default self.th_betas, but rendering mesh does not have shape-specific changes. What may be the issue?

        # Below does: v_shaped = v_template + shapedirs * betas
        # If shape parameters are not provided
        if th_betas is None or bool(torch.norm(th_betas) == 0):
            th_v_shaped = self.th_v_template + torch.matmul(
                self.th_shapedirs, self.th_betas.transpose(1, 0)).permute(2, 0, 1)
            th_j = torch.matmul(self.th_J_regressor, th_v_shaped).repeat(
                batch_size, 1, 1)
        else:
            th_v_shaped = self.th_v_template + torch.matmul(
                self.th_shapedirs, th_betas.transpose(1, 0)).permute(2, 0, 1)
            th_j = torch.matmul(self.th_J_regressor, th_v_shaped)

How do you get shape variations?

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

1 participant