Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
x505367603 opened this issue Nov 12, 2021 · 0 comments
Open

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

x505367603 opened this issue Nov 12, 2021 · 0 comments

Comments

@x505367603
Copy link

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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant