EasyMocap icon indicating copy to clipboard operation
EasyMocap copied to clipboard

KeyError: 'num_pca_comps' in MANO reconstruction

Open siyuan-peng opened this issue 2 years ago • 5 comments

I'm following the steps in quickstart demo here, and got an error in step 2.3 MANO reconstruction for both hands. image

Any idea on how to solve this? Thanks!

P.S. I'm running on Windows with Python 3.6.13 in a conda environment.

siyuan-peng avatar Mar 03 '22 10:03 siyuan-peng

I had the same question.

wangxihao avatar Apr 09 '22 12:04 wangxihao

Same with you, did you figure it out?

QiFuChina avatar May 28 '22 02:05 QiFuChina

body_model.py 177-179:

        # self.num_pca_comps = kwargs['num_pca_comps']
        # self.use_pca = kwargs['use_pca']
        # self.use_flat_mean = kwargs['use_flat_mean']
        self.num_pca_comps = 6            
        self.use_pca = True            
        self.use_flat_mean = True

jhqxxx avatar Jun 09 '22 09:06 jhqxxx

you can add code in config/vis3d/o3d_scene_manol.yml 12-15

body_model:
  module: "easymocap.smplmodel.body_model.SMPLlayer"
  args:
    _no_merge_: True
    model_path: "data/smplx/smplh/MANO_LEFT.pkl"
    model_type: "mano"
    gender: "neutral"
    device: "cuda"
    regressor_path: "data/smplx/J_regressor_mano_LEFT.txt"
    # add
    num_pca_comps: 6
    use_pca: True
    use_flat_mean: True

ChengBo5 avatar Jul 07 '22 08:07 ChengBo5