shivi commited on
Commit
1ae0dad
·
1 Parent(s): aeaceee

Update predict.py

Browse files
Files changed (1) hide show
  1. predict.py +2 -1
predict.py CHANGED
@@ -53,8 +53,9 @@ 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
-
57
  labels = np.unique(mask)
 
58
  label2color = {int(label): (random.randint(0, 1), random.randint(0, 255), random.randint(0, 255)) for label in labels}
59
 
60
  for label, color in label2color.items():
 
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("color_segmentation_map:",color_segmentation_map)
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}
60
 
61
  for label, color in label2color.items():