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

KeyError: (413, 832, -0.009377552196383476) #145

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 836, in remove_dangling
    info_on_pix, mesh, edge_mesh = update_info(mapping_dict, info_on_pix, mesh, edge_mesh)
  File "/media/.../3DP/src/mesh_tools.py", line 795, in update_info
    rt_meshes.append(relabel_node(mesh, mesh.nodes, [*mapping_dict.keys()][0], [*mapping_dict.values()][0]))
  File "/media/.../3DP/src/mesh_tools.py", line 39, in relabel_node
    for key, value in nodes[cur_node].items():
  File "cynetworkx/classes/reportviews.py", line 178, in cynetworkx.classes.reportviews.NodeView.__getitem__
KeyError: (413, 832, -0.009377552196383476)