Skip to content

matrix not invertible #3

Description

@yossilevii100

Hi, I'm trying to reproduce your code.
Running python3 modelnetdataset.py on downloaded modelnet40_normal_resampled dataset yields the following error:

torch._C._LinAlgError: linalg.inv: The diagonal element 1 is zero, the inversion could not be completed because the input matrix is singular.

Any clue how to solve it?
Thanks a lot!

Here is the error log:

  File "modelnetdataset.py", line 105, in __getitem__
    blurs=plane_blur(pc[:3].unsqueeze(0),mask=None,single=False)
  File "/home/me.levi/igos/blur_utils.py", line 317, in plane_blur
    pc=plane_smoothing(pc,k=k,r=r,d=0,lamb=lamb,miu=miu,erosion=True,subset=idx)
  File "/home/me.levi/igos/blur_utils.py", line 285, in plane_smoothing
    x=project_to_line(nn_pos,x,normal,plane,erosion,lamb,miu)
  File "/home/me.levi/igos/blur_utils.py", line 228, in project_to_line
    uv_inverse=torch.inverse(uv) # 2 x 2
torch._C._LinAlgError: linalg.inv: The diagonal element 1 is zero, the inversion could not be completed because the input matrix is singular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions