Update app.py
Browse files
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
|
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()
|