Spaces:
Runtime error
Runtime error
Update predict.py
Browse files- predict.py +1 -1
predict.py
CHANGED
@@ -53,7 +53,7 @@ def draw_semantic_segmentation(segmentation_map, image, palette):
|
|
53 |
|
54 |
def visualize_instance_seg_mask(mask, input_image):
|
55 |
color_segmentation_map = np.zeros((mask.shape[0], mask.shape[1], 3), dtype=np.uint8)
|
56 |
-
print("
|
57 |
labels = np.unique(mask)
|
58 |
print("labels:",labels)
|
59 |
label2color = {int(label): (random.randint(0, 1), random.randint(0, 255), random.randint(0, 255)) for label in labels}
|
|
|
53 |
|
54 |
def visualize_instance_seg_mask(mask, input_image):
|
55 |
color_segmentation_map = np.zeros((mask.shape[0], mask.shape[1], 3), dtype=np.uint8)
|
56 |
+
print("segmentation_map:",mask)
|
57 |
labels = np.unique(mask)
|
58 |
print("labels:",labels)
|
59 |
label2color = {int(label): (random.randint(0, 1), random.randint(0, 255), random.randint(0, 255)) for label in labels}
|