vt-vl-lab / 3d-photo-inpainting

[CVPR 2020] 3D Photography using Context-aware Layered Depth Inpainting
https://shihmengli.github.io/3D-Photo-Inpainting/
Other
6.9k stars 1.11k forks source link

index out of range error in `ne_node = [xx for xx in mesh.neighbors(node) if xx not in cc][0]` #144

Open NagabhushanSN95 opened 2 years ago

NagabhushanSN95 commented 2 years ago

Hi, I'm getting the below error when trying to run 3DP on a custom image with ground truth depth. Any idea why this might be happening or how I can resolve this?

  File "/media/.../3DP/src/mesh.py", line 1849, in write_ply
    input_mesh, info_on_pix, edge_mesh, depth, aft_mark = remove_dangling(input_mesh, edge_ccs, edge_mesh, info_on_pix, image, depth, config)
  File "/media/.../3DP/src/mesh.py", line 851, in remove_dangling
    ne_node = [xx for xx in mesh.neighbors(node) if xx not in cc][0]
IndexError: list index out of range