Jeff-sjtu / HybrIK

Official code of "HybrIK: A Hybrid Analytical-Neural Inverse Kinematics Solution for 3D Human Pose and Shape Estimation", CVPR 2021
MIT License
1.21k stars 147 forks source link

关于torch size不匹配和smpl的版本/ about torch size mismatch and the version of smpl #147

Closed jasonbarthes closed 1 year ago

jasonbarthes commented 1 year ago

SMPL目前没有给1.0.0版本的neutral模型,我也在issues中看到了同样的问题 后来从https://github.com/classner/up 下载获得了19年的1.0.0的neutral模型 不过仍然不成功,报错如下: (SMPL currently does not give a neutral model for version 1.0.0, and I saw the same problem in issues Then I downloaded from https://github.com/classner/up and got the neutral model for 1.0.0 released in 2019 But it still doesn't work, the error is reported as follows:)

size mismatch for init_cam: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([1]).
    size mismatch for preact.conv1.weight: copying a param with shape torch.Size([64, 3, 7, 7]) from checkpoint, the shape in current model is torch.Size([64, 3, 3, 3]).
    size mismatch for preact.layer1.0.conv1.weight: copying a param with shape torch.Size([64, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 64, 1, 1]).
    size mismatch for preact.layer1.1.conv1.weight: copying a param with shape torch.Size([64, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 256, 1, 1]).
    size mismatch for preact.layer1.2.conv1.weight: copying a param with shape torch.Size([64, 64, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 256, 1, 1]).
    size mismatch for decshape.weight: copying a param with shape torch.Size([10, 1024]) from checkpoint, the shape in current model is torch.Size([10, 2048]).
    size mismatch for decphi.weight: copying a param with shape torch.Size([46, 1024]) from checkpoint, the shape in current model is torch.Size([46, 2048]).
    size mismatch for deccam.weight: copying a param with shape torch.Size([3, 1024]) from checkpoint, the shape in current model is torch.Size([1, 2048]).
    size mismatch for deccam.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([1]).
(hybrik)

另外,我没找到有叫pretrained_hrnet.pth的文件,就直接把pretrained_w_cam.pth重命名成了hrnet,不知道这样对不对? (Also, I didn't find a file called pretrained_hrnet.pth, so I just renamed pretrained_w_cam.pth to hrnet, I don't know if this is right?)

jasonbarthes commented 1 year ago

报错很长,我只截取了最后一段,如有需要我可以提供前面的内容

zhangziwenHIT commented 1 year ago

我也遇到了同样的问题,请问最后怎么解决的呢?