vchoutas / smplify-x

Expressive Body Capture: 3D Hands, Face, and Body from a Single Image
https://smpl-x.is.tue.mpg.de/
Other
1.77k stars 340 forks source link

IndexError: list index out of range #38

Closed lululalamm closed 5 years ago

lululalamm commented 5 years ago

First, use own images(4 of .jpg, 1 of .png) and keypoints with openpose (--write_json) i run $ python smplifyx/main.py --config cfg_files/fit_smplx.yaml --data_folder data --output_folder output --visualize ="True" --model_folder model/models --vposer_ckpt vposer --part_segm_fn smplx_parts_segm.pkl

but error occured,

Traceback (most recent call last): File "smplifyx/main.py", line 272, in main(args) File "smplifyx/main.py", line 262, in main args) File "/data/3d_pose/10_smplify-x/smplifyx/fit_single_frame.py", line 188, in fit_singleframe vposer, = load_vposer(vposer_ckpt, vp_model='snapshot') File "/usr/local/lib/python3.6/dist-packages/human_body_prior/tools/model_loader.py", line 56, in load_vposer ps, trained_model_fname = expid2model(expr_dir) File "/usr/local/lib/python3.6/dist-packages/human_body_prior/tools/model_loader.py", line 36, in expid2model default_ps_fname = glob.glob(os.path.join(expr_dir,'*.ini'))[0] IndexError: list index out of range

how can i running right? :(

and i don't have '*.ini' file .. downloads ehf, homogenus,vposer,smplx but not there

SirazumMuniraTisha commented 5 years ago

I got he same error. Any solution?

SirazumMuniraTisha commented 5 years ago

I solved mine. I was not referring to the right vposer folder. This vposer folder will be the one that we need to download from smplx website