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

project_joints --imgFolder demo/images/train --loadPrecomputed demo/Cam/train_Cam \ --modeltype SMPLX --kid_template_path utils/smplx_kid_template.npy --modelFolder demo/model \ --gt_model_path demo/GT_fits/ --imgWidth 1280 --imgHeight 720 #26

Open
YJYlala opened this issue Jul 14, 2023 · 1 comment

Comments

@YJYlala
Copy link

YJYlala commented Jul 14, 2023

when i run the command:

project_joints --imgFolder demo/images/train --loadPrecomputed demo/Cam/train_Cam \
  --modeltype SMPLX --kid_template_path utils/smplx_kid_template.npy --modelFolder demo/model \
  --gt_model_path demo/GT_fits/ --imgWidth 1280 --imgHeight 720

it will show the error:

DEBUG:matplotlib:matplotlib data path: /home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/matplotlib/mpl-data
DEBUG:matplotlib:CONFIGDIR=/home/huangzhen/.config/matplotlib
DEBUG:matplotlib:interactive is False
DEBUG:matplotlib:platform is linux
DEBUG:matplotlib:CACHEDIR=/home/huangzhen/.cache/matplotlib
DEBUG:matplotlib.font_manager:Using fontManager instance from /home/huangzhen/.cache/matplotlib/fontlist-v330.json
0it [00:00, ?it/s]INFO:root:Processing 0th dataframe
INFO:root:Generating Ground truth joints
  0%|                                                                                                                                                                                                             | 0/1453 [00:00<?, ?it/s]
0it [00:05, ?it/s]                                                                                                                                                                                                | 0/1453 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "/home/huangzhen/anaconda3/envs/py_3.8/bin/project_joints", line 8, in <module>
    sys.exit(project_joints())
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/agora_evaluation/cli.py", line 26, in project_joints
    run_projection(sys.argv[1:])
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/agora_evaluation/project_joints.py", line 77, in run_projection
    df = add_joints_verts_in_dataframe(args, df, store_joints)
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/agora_evaluation/get_joints_verts_from_dataframe.py", line 240, in add_joints_verts_in_dataframe
    gt_verts_cam_2d, gt_verts_cam_3d, gt_joints_cam_2d, gt_joints_cam_3d = get_projected_joints(args, df,
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/agora_evaluation/get_joints_verts_from_dataframe.py", line 209, in get_projected_joints
    gt_joints_local, gt_verts_local = get_smplx_vertices(args.numBetas, kid_flag, gt, gender,
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/agora_evaluation/get_joints_verts_from_dataframe.py", line 105, in get_smplx_vertices
    smplx_gt = model_gt(
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/smplx/body_models.py", line 1242, in forward
    vertices, joints = lbs(shape_components, full_pose, self.v_template,
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/smplx/lbs.py", line 209, in lbs
    v_shaped = v_template + blend_shapes(betas, shapedirs)
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/smplx/lbs.py", line 295, in blend_shapes
    blend_shape = torch.einsum('bl,mkl->bmk', [betas, shape_disps])
  File "/home/huangzhen/anaconda3/envs/py_3.8/lib/python3.8/site-packages/torch/functional.py", line 241, in einsum
    return torch._C._VariableFunctions.einsum(equation, operands)
RuntimeError: size of dimension does not match previous size, operand 1, dim 2

can u help me to check what is wrong?

@hnuzhy
Copy link
Owner

hnuzhy commented Jul 21, 2023

Your problems might be the same as others which have been solved in issues (both opening and closed). Try to refer them please~

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