MotionGPT
MotionGPT copied to clipboard
tensor (3) must match the existing size (263)
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]