hyo37009 commited on
Commit
7e6302a
1 Parent(s): 45c0938
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -81,7 +81,7 @@ def draw_plot(pred_img, seg):
81
 
82
  # Limit unique_labels to be within the range of colormap
83
  unique_labels = np.unique(seg.astype("uint8"))
84
- unique_labels = unique_labels[unique_labels < len(colormap)]
85
 
86
  ax = plt.subplot(grid_spec[1])
87
 
@@ -98,7 +98,6 @@ def draw_plot(pred_img, seg):
98
  plt.xticks([], [])
99
  ax.tick_params(width=0.0, labelsize=25)
100
  return fig
101
-
102
  def label_to_color_image(label):
103
  if label.ndim != 2:
104
  raise ValueError("Expect 2-D input label")
 
81
 
82
  # Limit unique_labels to be within the range of colormap
83
  unique_labels = np.unique(seg.astype("uint8"))
84
+ unique_labels = unique_labels[unique_labels < len(FULL_COLOR_MAP)]
85
 
86
  ax = plt.subplot(grid_spec[1])
87
 
 
98
  plt.xticks([], [])
99
  ax.tick_params(width=0.0, labelsize=25)
100
  return fig
 
101
  def label_to_color_image(label):
102
  if label.ndim != 2:
103
  raise ValueError("Expect 2-D input label")