smplify-x icon indicating copy to clipboard operation
smplify-x copied to clipboard

RuntimeError: size of dimension does not match previous size, operand 1, dim 2

Open mchong6 opened this issue 4 years ago • 6 comments

Got this bug

File "/home/minjin/anaconda3/envs/smpl/lib/python3.7/site-packages/smplx/lbs.py", line 266, in blend_shapes blend_shape = torch.einsum('bl,mkl->bmk', [betas, shape_disps]) File "/home/minjin/anaconda3/envs/smpl/lib/python3.7/site-packages/torch/functional.py", line 211, in einsum return torch._C._VariableFunctions.einsum(equation, operands) RuntimeError: size of dimension does not match previous size, operand 1, dim 2

I printed the shapes of betas and shape_disps and they are torch.Size([1, 20]) torch.Size([10475, 3, 400]). What could cause this problem?

mchong6 avatar Sep 02 '21 06:09 mchong6

Hello @mchong6 . Have you managed to overcome this problem?

armored-guitar avatar Nov 24 '21 09:11 armored-guitar

I also have this problem,do you have some suggests?

ZhengHFei avatar Jan 06 '22 08:01 ZhengHFei

In my case, I had this problem due to using the wrong smpl model. I just replaced them with smpl_v1.0.0 and everything works fine.

dongdu3 avatar Jan 20 '22 03:01 dongdu3

yes!my problem was solved after I changed the smpl model. (the right one is smpl_v1.0.0)

WangXuan2401 avatar Jun 18 '22 03:06 WangXuan2401

@WangXuan2401 Hi, how about the version of smpl-x model?

linjing7 avatar Aug 25 '22 16:08 linjing7

I also have this problem.

Update:

In my case:

I installed smplx model as this did here. I solved it by installing it using pip install smplx[all] as did here, then using pip uninstall smplx[all], then pip install smplx[all]

Algabri avatar Feb 15 '23 03:02 Algabri