chansung commited on
Commit
fc487e7
·
1 Parent(s): e607f25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def draw_plot(pred_img, seg):
196
  FULL_LABEL_MAP = np.arange(len(LABEL_NAMES)).reshape(len(LABEL_NAMES), 1)
197
  FULL_COLOR_MAP = label_to_color_image(FULL_LABEL_MAP)
198
 
199
- unique_labels = np.unique(seg.numpy().astype("uint8"))
200
  ax = plt.subplot(grid_spec[1])
201
  plt.imshow(FULL_COLOR_MAP[unique_labels].astype(np.uint8), interpolation="nearest")
202
  ax.yaxis.tick_right()
 
196
  FULL_LABEL_MAP = np.arange(len(LABEL_NAMES)).reshape(len(LABEL_NAMES), 1)
197
  FULL_COLOR_MAP = label_to_color_image(FULL_LABEL_MAP)
198
 
199
+ unique_labels = np.unique(seg)
200
  ax = plt.subplot(grid_spec[1])
201
  plt.imshow(FULL_COLOR_MAP[unique_labels].astype(np.uint8), interpolation="nearest")
202
  ax.yaxis.tick_right()