"vscode:/vscode.git/clone" did not exist on "da0562fcf4883bf2e61659caf384327724a19999"
Commit b7750bcd authored by yongshk's avatar yongshk
Browse files

add new

parents
Pipeline #574 canceled with stages
import matplotlib.pyplot as plt
def plot_img_and_mask(img, mask):
classes = mask.max() + 1
fig, ax = plt.subplots(1, classes + 1)
ax[0].set_title('Input image')
ax[0].imshow(img)
for i in range(classes):
ax[i + 1].set_title(f'Mask (class {i + 1})')
ax[i + 1].imshow(mask == i)
plt.xticks([]), plt.yticks([])
plt.show()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment