Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List index out of range Error #40

Closed
a78239636 opened this issue Oct 30, 2020 · 1 comment
Closed

List index out of range Error #40

a78239636 opened this issue Oct 30, 2020 · 1 comment

Comments

@a78239636
Copy link

a78239636 commented Oct 30, 2020

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant