Skip to content

There is no .csv file when prepare the scannet dataset #13

@x505367603

Description

@x505367603

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`

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