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

e_values and e_vectors is [] #16

Open
tsvetiko opened this issue Oct 18, 2017 · 2 comments
Open

e_values and e_vectors is [] #16

tsvetiko opened this issue Oct 18, 2017 · 2 comments

Comments

@tsvetiko
Copy link

When I run lsfm -i ./input_dir -o ./output_dir I get the following error:

...
RuntimeWarning: invalid value encountered in true_divide
  C = np.dot(X, X.conj().T) / (n - 1)
...
RuntimeWarning: invalid value encountered in double_scalars
  return self._total_variance() / self.original_variance()
...File "/home/miniconda3/envs/lsfm/lib/python3.5/site-packages/menpo/model/pca.py", line 214, in n_active_components
    raise ValueError(err_str)
ValueError: Tried setting n_active_components to 0.985 - value needs to be a float 0.0 < n_components < self._total_kept_variance_ratio (nan) or an integer 1 < n_components < self.n_components (0)

When I tried to debug I found out that the eigenvalues and eigenvectors are empty.

Do you have an idea how to fix this?

@patricksnape
Copy link

patricksnape commented Oct 20, 2017

Somehow your data matrix is badly formed? The warning is telling you that X contains either all zeros or a nan.

@LeeTaiTai
Copy link

i solve this error. first you must update ,menpo=0.8 menpo3d=0.6, menpofit=0.5,menpodetect=0.5,and put two or more meshes to train,if you put one mesh,then the (n-1)==0,so ,you get a NAN value.

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

3 participants