-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
in graph_level_generation.py--->quadric_error_metric--->csv2npy:
FileNotFoundError: [Errno 2] No such file or directory: 'Data/scannet_qem_train_rooms/scannet/curr_mesh.csv'
I debugged the code and couldn't find the.csv file in the output directory,only a curr_mesh.ply file.
`def quadric_error_metric(curr_file_path, ratio, old_vertices):
os.system(f"tridecimator "
f"{curr_file_path} {curr_file_path} {ratio} -On -C > /dev/null")
mesh = open3d.read_triangle_mesh(curr_file_path)
if not mesh.has_vertices():
raise QEMError('no vertices left')
coords = np.asarray(mesh.vertices)
edges_list = edges_from_faces(np.asarray(mesh.triangles))
edge_out = []
for key, group in enumerate(edges_list):
for elem in group:
edge_out.append([key, elem])
reverse_trace = csv2npy(curr_file_path.replace(
'.ply', '.csv'), old_vertices=old_vertices, new_vertices=coords)
return coords, edge_out, reverse_trace`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels