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

SMPLX missing one attribute: num_betas #24

Open
sylcito opened this issue Dec 3, 2024 · 1 comment
Open

SMPLX missing one attribute: num_betas #24

sylcito opened this issue Dec 3, 2024 · 1 comment

Comments

@sylcito
Copy link

sylcito commented Dec 3, 2024

Hi, nice work!
But I meet one trouble when I try peoplesnapshot male-3.

self._smplx_model = smplx.create(gender=gender, **model_params)

In this line, the variable num_betas=10 is not explicitly specified, so when the SMPLX is enabled, it automatically inherits the default num_betas=16 from SMPLH. As a result, when calculating LBS (Linear Blend Skinning), in the expression v_shaped = v_template + blend_shapes(betas, shapedirs), the execution of blend_shape = torch.einsum('bl,mkl->bmk', [betas, shape_disps]) triggers a dimension mismatch issue. This is because the dimension of shape_dirs should theoretically be [10475, 3, 20], but in this case, it becomes [10475, 3, 26].

After explicitly specifying num_betas=10, the bug is resolved.

@david-svitov
Copy link
Owner

Hi! Thanks for the note!

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