Spaces:
Runtime error
Runtime error
Gaurav
commited on
Commit
•
8889c7d
1
Parent(s):
596fdc9
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def visualize_instance_seg_mask(mask):
|
|
38 |
|
39 |
window_vertices = np.array([[x, 0, -y] for x, y in window])
|
40 |
# Perform Delaunay triangulation
|
41 |
-
tri = Delaunay(
|
42 |
|
43 |
# Extract indices
|
44 |
indices = tri.simplices
|
|
|
38 |
|
39 |
window_vertices = np.array([[x, 0, -y] for x, y in window])
|
40 |
# Perform Delaunay triangulation
|
41 |
+
tri = Delaunay(window_vertices[:, :2]) # Triangulate only based on x and y coordinates
|
42 |
|
43 |
# Extract indices
|
44 |
indices = tri.simplices
|