Gaurav commited on
Commit
378559f
1 Parent(s): 9e0841e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -37,7 +37,9 @@ def visualize_instance_seg_mask(mask):
37
  image[i, j, :] = label2color[mask[i, j]]
38
 
39
  window_vertices = np.array([[x, 0, -y] for x, y in floor])
40
- # Perform Delaunay triangulation
 
 
41
  tri = Delaunay(window_vertices[:, :2]) # Triangulate only based on x and y coordinates
42
 
43
  # Extract indices
 
37
  image[i, j, :] = label2color[mask[i, j]]
38
 
39
  window_vertices = np.array([[x, 0, -y] for x, y in floor])
40
+ unique_vertices, indices = np.unique(window_vertices, axis=0, return_inverse=True)
41
+
42
+ # Perform Delaunay triangulation
43
  tri = Delaunay(window_vertices[:, :2]) # Triangulate only based on x and y coordinates
44
 
45
  # Extract indices