Walter0807 / MotionBERT

[ICCV 2023] PyTorch Implementation of "MotionBERT: A Unified Perspective on Learning Human Motion Representations"
Apache License 2.0
1.02k stars 123 forks source link

Missing key(s) in state_dict: "temp_embed", "pos_embed", #47

Closed Wanglibin14715 closed 1 year ago

Wanglibin14715 commented 1 year ago

Loading checkpoint checkpoint/pose3d/FT_MB_lite_MB_ft_h36m_global_lite/best_epoch.bin Traceback (most recent call last): File "/content/MotionBERT/infer_wild.py", line 45, in <module> model_backbone.load_state_dict(checkpoint['model_pos'], strict=True) File "/usr/local/lib/python3.10/dist-packages/torch/nn/modules/module.py", line 2041, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for DSTformer: Missing key(s) in state_dict: "temp_embed", "pos_embed", ... Unexpected key(s) in state_dict: "module.temp_embed", "module.pos_embed", ...

I had tried to solve this problem, according to this blog. https://blog.csdn.net/yangwangnndd/article/details/100207686 however, there are more problems following.

I followed this guide https://github.com/Walter0807/MotionBERT/blob/main/docs/inference.md I use this 3dpose model https://onedrive.live.com/?authkey=%21ALuKCr9wihi87bI&id=A5438CD242871DF0%21190&cid=A5438CD242871DF0

Walter0807 commented 1 year ago

Duplicate of https://github.com/Walter0807/MotionBERT/issues/24