davrempe / humor

Code for ICCV 2021 paper "HuMoR: 3D Human Motion Model for Robust Pose Estimation"
MIT License
518 stars 72 forks source link

AttributeError: type object 'SMPL' has no attribute 'SHAPE_SPACE_DIM' #12

Closed Xianjin111 closed 2 years ago

Xianjin111 commented 2 years ago

Thank you for your perfect work. When I run the optimization on the demo video, I met the following problem: 企业微信截图_16424108504470

I have downloaded the smplh model from the website. Could you please give me some advice?

Thx!

davrempe commented 2 years ago

Hello. This might be because you are using an old version of the smplx library. Please make sure that you have version 0.1.28 installed as indicated in the requirements file.

If for some reason you really can't upgrade to the newest version you could replace SMP.SHAPE_SPACE_DIM in the code here to be hardcoded to 300. However, using an old version of smplx may affect other parts of the code in unexpected ways, so I would suggest avoiding this.

Xianjin111 commented 2 years ago

Hello. This might be because you are using an old version of the smplx library. Please make sure that you have version 0.1.28 installed as indicated in the requirements file.

If for some reason you really can't upgrade to the newest version you could replace SMP.SHAPE_SPACE_DIM in the code here to be hardcoded to 300. However, using an old version of smplx may affect other parts of the code in unexpected ways, so I would suggest avoiding this.

Thank you for your solution. I have solved this problem after I updated the smplx to version 0.1.28.