Thanks for your great work!
When I run segmentation on my customized meshes, for some mesh, it works without error. However, for some other meshes, I get the error
Traceback (most recent call last):
File "/home/jianfu/MeshCraft/SATR/scripts/single_dataset_example.py", line 18, in
segment(
File "/home/jianfu/MeshCraft/SATR/scripts/helper_functions.py", line 142, in segment
segmenter.set_mesh(mesh)
File "/home/jianfu/MeshCraft/SATR/meshseg/methods/segmentors.py", line 187, in set_mesh
self.compute_vertices_pairwise_dist()
File "/home/jianfu/MeshCraft/SATR/meshseg/methods/segmentors.py", line 276, in compute_vertices_pairwise_dist
self.vertices_distances[:, i] = x
ValueError: could not broadcast input array from shape (172,) into shape (344,)
How do I solve this?
Hi @tianyyiii, thank you for reaching out! it seems that the mesh may have duplicate vertices. You may need to preprocess it using Meshlab or similar software.
Thanks for your great work! When I run segmentation on my customized meshes, for some mesh, it works without error. However, for some other meshes, I get the error
Traceback (most recent call last): File "/home/jianfu/MeshCraft/SATR/scripts/single_dataset_example.py", line 18, in
segment(
File "/home/jianfu/MeshCraft/SATR/scripts/helper_functions.py", line 142, in segment
segmenter.set_mesh(mesh)
File "/home/jianfu/MeshCraft/SATR/meshseg/methods/segmentors.py", line 187, in set_mesh
self.compute_vertices_pairwise_dist()
File "/home/jianfu/MeshCraft/SATR/meshseg/methods/segmentors.py", line 276, in compute_vertices_pairwise_dist
self.vertices_distances[:, i] = x
ValueError: could not broadcast input array from shape (172,) into shape (344,)
How do I solve this?