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.16k stars 142 forks source link

error when val #164

Closed daixiangzi closed 1 year ago

daixiangzi commented 1 year ago

return torch._C._nn.linear(input, weight, bias) RuntimeError: mat1 dim 1 must match mat2 dim 0

daixiangzi commented 1 year ago

train cmd: ./scripts/train_smpl_cam.sh test_3dpw configs/256x192_adam_lr1e-3-res34_smpl_3d_cam_2x_mix_w_pw3d.yaml

daixiangzi commented 1 year ago

second problem when ./scripts/validate_smpl_cam.sh ./configs/256x192_adam_lr1e-3-res34_smpl_3d_cam_2x_mix_w_pw3d.yaml ./exp/mix2_smpl_cam/256x192_adam_lr1e-3-res34_smpl_3d_cam_2x_mix_w_pw3d.yaml-test_3dpw/model_1.pth: HybrIK/hybrik/models/layers/smpl/lbs.py", line 258, in lbs pose_offsets = torch.matmul(pose_feature, posedirs) RuntimeError: mat1 dim 1 must match mat2 dim 0

yan1gyangyang1 commented 1 year ago

hello,i meet a same question.i send a qq mail for you.

daixiangzi commented 1 year ago

I have solved above problems;

yupei-song commented 1 year ago

@daixiangzi Hi, can you elaborate on how to solve this problem? I found that pose_feature, posedirs can not be multiplied.

yupei-song commented 1 year ago

I think i found the problem. The gt pose is already rotation matrix,so we did not do batch_rodrigues(). Just reshape the input is OK. And it should be better to add a judgment, whether the input is the representation of the axis angle.