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

tensor (3) must match the existing size (263) #100

Open
ehsanwwe opened this issue Jul 21, 2024 · 0 comments
Open

tensor (3) must match the existing size (263) #100

ehsanwwe opened this issue Jul 21, 2024 · 0 comments

Comments

@ehsanwwe
Copy link

i have this error in most of samples
like run demo
or render
for example at below code i try to smplf render but i got this error

python -m fit --dir ./cache/ --save_folder ./cache/2024-07-09-13_10_1170620_frames        
Namespace(batchSize=1, num_smplify_iters=100, cuda=True, gpu_ids=0, num_joints=22, joint_category='AMASS', fix_foot='False', data_folder='', save_folder='./cache/2024-07-09-13_10_1170620_frames', dir='./cache/', files='test_motion.npy')
C:/Users/e.moradi/PycharmProjects/MotionGPT/deps/smpl_models/
WARNING: You are using a SMPL model, with only 10 shape coefficients.
initialize SMPLify3D done!
begin to render 38 npy files!
begin rendering ./cache/2024-07-09-13_10_1170620_frames\results_smplfitting\SMPLFit_2024-07-09-13_10_3199460
computing frame 0
Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\e.moradi\PycharmProjects\MotionGPT\fit.py", line 202, in <module>
    keypoints_3d[0, :, :] = torch.Tensor(joints3d).to(device).float()
RuntimeError: The expanded size of the tensor (3) must match the existing size (263) at non-singleton dimension 1.  Target sizes: [22, 3].  Tensor sizes: [263]


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