Open Steven-LeMoal opened 4 months ago
In def differentiable_voronoi, there is (line 422):
assert len(vertex_faces_dict) == len(coords), print(len(vertex_faces_dict), len(coords))
I believe that is because there could be duplicate in coords, you could replace this line by:
if len(vertex_faces_dict) == len(coords): coords, _ = torch.unique(coords, return_inverse=True, dim=0)
Thank you, Steven!
In this place we would like to keep this assert True because duplicate points are of great problem for the method.
Please let us know if it resolves the issue.
In def differentiable_voronoi, there is (line 422):
assert len(vertex_faces_dict) == len(coords), print(len(vertex_faces_dict), len(coords))
I believe that is because there could be duplicate in coords, you could replace this line by: