menpo / lsfm

Large Scale Facial Model (LSFM) - an automatic pipeline for constructing 3D Morphable Models from large collections of facial meshes
http://ibug.doc.ic.ac.uk/resources/lsfm/
BSD 3-Clause "New" or "Revised" License
500 stars 117 forks source link

List index out of range Error #40

Closed a78239636 closed 3 years ago

a78239636 commented 3 years ago

I want to deal with the wrl file and the jpg file in simpleIput1/ If you need jpg example please email a78239636@163.com(my email adress)

However, met this error list out of range, so anyone know about this ? Thanks.

----------------------This is Full error description ---------------------------------------

~$ lsfm -o simpleOut3/ -i simpleInput1/ Input directory provided - scanning for importable meshes Found 3 input meshes under: simpleInput1 Outputting results to /home/li_gang/simpleOut3

** 1. DENSE CORRESPONDENCE ** Correspondence: [==========] 100% (3/3) - done.
** 1. INITIAL PCA + PRUNE **

Traceback (most recent call last): File "/usr/local/bin/lsfm", line 4, in import('pkg_resources').run_script('lsfm==1.1.0rc1', 'lsfm') File "/usr/local/lib/python3.5/dist-packages/pkg_resources/init.py", line 666, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python3.5/dist-packages/pkg_resources/init.py", line 1453, in run_script exec(code, namespace, namespace) File "/usr/local/lib/python3.5/dist-packages/lsfm-1.1.0rc1-py3.5.egg/EGG-INFO/scripts/lsfm", line 285, in main(docopt(doc)) File "/usr/local/lib/python3.5/dist-packages/lsfm-1.1.0rc1-py3.5.egg/EGG-INFO/scripts/lsfm", line 281, in main pca_and_prune(r, verbose=verbose) File "/usr/local/lib/python3.5/dist-packages/lsfm-1.1.0rc1-py3.5.egg/EGG-INFO/scripts/lsfm", line 100, in pca_and_prune verbose=True) File "/usr/local/lib/python3.5/dist-packages/lsfm-1.1.0rc1-py3.5.egg/lsfm/model.py", line 14, in pca_and_weights model = PCAModel(meshes, verbose=verbose) File "/usr/local/lib/python3.5/dist-packages/menpo/model/pca.py", line 1199, in init return_template=True, verbose=verbose) File "/usr/local/lib/python3.5/dist-packages/menpo/math/linalg.py", line 125, in as_matrix template = vectorizables[0] File "/usr/local/lib/python3.5/dist-packages/menpo/base.py", line 497, in getitem return self.callables[ slice ] ( ) IndexError: list index out of range

a78239636 commented 3 years ago

Ok, I know why. In landmark and correspondece step, it will output some file. But If it first failed, it has created some dictories. The seconde time you try, when it find the dir, it will think get the correct output. Howere, there are nothing in dirs. So when it try to get file from output mkdir, will cause List index out of rang