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 #17

Closed octas closed 5 years ago

octas commented 5 years ago

Hi, I just wanted to note this is amazing work! I've been trying to test Smplify-X on a custom image of a person standing up.

I've been getting this error: Traceback (most recent call last): File "smplifyx/render_results.py", line 99, in <module> mesh_fn = key_handler.get_mesh_fn() File "smplifyx/render_results.py", line 54, in get_mesh_fn return self.mesh_fns[self.idx] IndexError: list index out of range

Any idea how to fix this? Thanks!

octas commented 5 years ago

Figured it out!

dimtzionas commented 5 years ago

Hi @octas , can you please also describe your finding, for future reference in case someone faces the same error?

sarathchandnekuri commented 4 years ago

Hello @octas I got the same error. Can you please tell me how to fix it

JacobLiu-S commented 4 years ago

Hello @octas I got the same error. Can you please tell me how to fix it

Hi I got the same error too, could you please tell me how to fix it?

Jyurineko commented 3 years ago

@octas Hi, i got same error, could you please tell me how you fix it?

Humiao-Li commented 2 years ago

Hi, i met the same error, because i typed in wrong file name. remember to type in right file name

Qusong1 commented 2 years ago

Hi, i met the same error, because i typed in wrong file name. remember to type in right file name

hello,i also got the same error. could you tell me how to fix it?

Qusong1 commented 2 years ago

@octas Hi, i got same error, could you please tell me how you fix it?

Qusong1 commented 2 years ago

@Humiao-Li hello,can you tell me how you fix the problem?

Humiao-Li commented 2 years ago

I met this problem because I typed in the wrong file folder name in this code python smplifyx/render_results.py --mesh_fns _OUTPUT_MESHFOLDER, type in the right file folder name. For example: python smplifyx/render_results.py --mesh_fns _smplx_debug/results/01img

iridium951 commented 1 year ago

If you are on Windows, the solution is to replace this line - model_cfg_fname = glob.glob(osp.join('/'.join(trained_weights_fname.split('/')[:-2]), '*.yaml'))

with this line - model_cfg_fname = glob.glob(osp.join('/'.join(trained_weights_fname.split('\\')[:-2]), '*.yaml'))

so change the / to \\

ferozkhanabbasi commented 1 year ago

Please download .obj file as mesh from https://free3d.com/3d-models/obj-human put in OUTPUT_MESH_FOLDER