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

Something wrong running vis_mano_vertices.py #195

Open
shawnFuu opened this issue May 22, 2024 · 0 comments
Open

Something wrong running vis_mano_vertices.py #195

shawnFuu opened this issue May 22, 2024 · 0 comments

Comments

@shawnFuu
Copy link

When I was running this command:python examples/vis_mano_vertices.py --model-folder F:/project/SMPL-X/smplx-main/models --corr-fname ./correspondences/MANO_SMPLX_vertex_ids.pkl
I got this:
(E:\pycharm\env\DLenv0) F:\project\SMPL-X\smplx-main>python examples/vis_mano_vertices.py --model-folder F:/project/SMPL-X/smplx-main/models --corr-fname ./correspondences/MANO_SMPLX_vertex_ids.pkl
Traceback (most recent call last):
File "F:\project\SMPL-X\smplx-main\examples\vis_mano_vertices.py", line 96, in
main(model_folder, corr_fname, ext=ext,
File "F:\project\SMPL-X\smplx-main\examples\vis_mano_vertices.py", line 47, in main
output = model(betas=betas, expression=expression,
File "E:\pycharm\env\DLenv0\lib\site-packages\torch\nn\modules\module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "E:\pycharm\env\DLenv0\lib\site-packages\torch\nn\modules\module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
File "E:\pycharm\env\DLenv0\lib\site-packages\smplx-0.1.28-py3.12.egg\smplx\body_models.py", line 1243, in forward
vertices, joints = lbs(shape_components, full_pose, self.v_template,
File "E:\pycharm\env\DLenv0\lib\site-packages\smplx-0.1.28-py3.12.egg\smplx\lbs.py", line 209, in lbs
v_shaped = v_template + blend_shapes(betas, shapedirs)
File "E:\pycharm\env\DLenv0\lib\site-packages\smplx-0.1.28-py3.12.egg\smplx\lbs.py", line 295, in blend_shapes
blend_shape = torch.einsum('bl,mkl->bmk', [betas, shape_disps])
File "E:\pycharm\env\DLenv0\lib\site-packages\torch\functional.py", line 375, in einsum
return einsum(equation, *_operands)
File "E:\pycharm\env\DLenv0\lib\site-packages\torch\functional.py", line 380, in einsum
return _VF.einsum(equation, operands) # type: ignore[attr-defined]
RuntimeError: einsum(): subscript l has size 26 for operand 1 which does not broadcast with previously seen size 20

I donnot know what is happening. But running demo.py is alright. Can someone give me help?

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