TCMR_RELEASE icon indicating copy to clipboard operation
TCMR_RELEASE copied to clipboard

size mismatch

Open headre opened this issue 3 years ago • 2 comments

Thanks for your great work! When I tested the demo provided, some problem occurred while loading models:

Traceback (most recent call last):
  File "demo.py", line 376, in <module>
    main(args)
  File "demo.py", line 111, in main
    model.load_state_dict(ckpt, strict=False)
  File "/opt/data/private/TCMR/TCMR_RELEASE/tcmr-env/lib/python3.7/site-packages/torch/nn/modules/module.py", line 830, in load_state_dict
    self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for TCMR:
	size mismatch for regressor.smpl.shapedirs: copying a param with shape torch.Size([6890, 3, 10]) from checkpoint, the shape in current model is torch.Size([6890, 3, 300]).

I wonder why and what to do. THX.

headre avatar Nov 09 '21 04:11 headre

Hi, and sorry for the late reply...

I think the error is due to version matching of SMPL weights. Refer to this issue! https://githubmemory.com/repo/Jeff-sjtu/HybrIK/issues/24

hongsukchoi avatar Nov 19 '21 11:11 hongsukchoi

Hi, and sorry for the late reply...

I think the error is due to version matching of SMPL weights. Refer to this issue! https://githubmemory.com/repo/Jeff-sjtu/HybrIK/issues/24

sorry,the link is closed how can I solve this ?THX

fengzehui0422 avatar Jan 18 '24 05:01 fengzehui0422