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

Update predict.py

Browse files
Files changed (1) hide show
  1. 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("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}
 
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}