spdnet icon indicating copy to clipboard operation
spdnet copied to clipboard

RuntimeError: Lapack Error gesdd : 1 superdiagonals failed to converge.

Open raj-shah opened this issue 5 years ago • 2 comments

I get a RuntimeError when running augment_data.py, which traces back to SVD (matrix_operator function invoked from tangent_space function). Possibly due to a badly-conditioned matrix?

Traceback (most recent call last):
  File "augment_data.py", line 35, in <module>
    tangent = tangent_space(data, data)
  File "/home/reddwarf/.local/lib/python3.6/site-packages/spdnet/utils.py", line 43, in tangent_space
    middle = matrix_operator(middle, 'expm')
  File "/home/reddwarf/.local/lib/python3.6/site-packages/spdnet/utils.py", line 20, in matrix_operator
    u, s, v = A.svd()
RuntimeError: Lapack Error gesdd : 1 superdiagonals failed to converge. at /opt/conda/conda-bld/pytorch_1556653183467/work/aten/src/TH/generic/THTensorLapack.cpp:406

raj-shah avatar May 22 '19 16:05 raj-shah

I am not sure how to properly augment SPD matrices. This function was an idea that I thought might work. Do you have any idea?

adavoudi avatar May 22 '19 20:05 adavoudi

I have the same problem.

zhanghuayu-seu avatar Sep 13 '20 07:09 zhanghuayu-seu