Spaces:
Runtime error
Runtime error
Gaurav
commited on
Commit
•
b3c5171
1
Parent(s):
2d796b3
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,8 @@ def visualize_instance_seg_mask(mask):
|
|
13 |
print(mask)
|
14 |
image = np.zeros((mask.shape[0], mask.shape[1], 3))
|
15 |
labels = np.unique(mask)
|
|
|
|
|
16 |
label2color = {label: (random.randint(0, 1), random.randint(0, 255), random.randint(0, 255)) for label in labels}
|
17 |
for i in range(image.shape[0]):
|
18 |
for j in range(image.shape[1]):
|
|
|
13 |
print(mask)
|
14 |
image = np.zeros((mask.shape[0], mask.shape[1], 3))
|
15 |
labels = np.unique(mask)
|
16 |
+
print("================unquie labels")
|
17 |
+
print(labels)
|
18 |
label2color = {label: (random.randint(0, 1), random.randint(0, 255), random.randint(0, 255)) for label in labels}
|
19 |
for i in range(image.shape[0]):
|
20 |
for j in range(image.shape[1]):
|