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

AttributeError: 'Graph' object has no attribute 'node' #123

Closed CaravanPassenger closed 3 years ago

CaravanPassenger commented 3 years ago

it happens in mesh.py, the tradeback looks like this :

Traceback (most recent call last): File "main.py", line 112, in depth_feat_model) File "C:\Users\guany\Desktop\3d-photo-inpainting-master\3d-photo-inpainting-master\mesh.py", line 1843, 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 "C:\Users\guany\Desktop\3d-photo-inpainting-master\3d-photo-inpainting-master\mesh.py", line 764, in remove_dangling mesh = refresh_node(single_edge_node, mesh.node[single_edge_node], new_node, dict(), mesh)

and the code :

mesh = refresh_node(single_edge_node, mesh.node[single_edge_node], new_node, dict(), mesh)

Looking forward to your help (

CaravanPassenger commented 3 years ago

haha,actually it is such a easy question,you only need to:

change the node to nodes