Samir55 / SATR

[ICCV23] SATR: Zero-Shot Semantic Segmentation of 3D Shapes
https://samir55.github.io/SATR/
MIT License
81 stars 5 forks source link

ValueError: could not broadcast input array from shape (172,) into shape (344,) for certain mesh #2

Closed tianyyiii closed 9 months ago

tianyyiii commented 9 months ago

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?

Samir55 commented 9 months ago

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.

tianyyiii commented 9 months ago

Thank you. It works!