From 9b624da8323820626039b75bae77d2e1f62e2df9 Mon Sep 17 00:00:00 2001 From: Laurent Fainsin Date: Wed, 29 Jun 2022 10:11:27 +0200 Subject: [PATCH] chore: delete unused file Former-commit-id: 540acfba838755064facc7a39bfe72b6cc0a2796 [formerly 085dd013a8e439d44b173a563b0fa8cd40cd9b75] Former-commit-id: c6c8fffc2768ec54ba1adb1648de17415f130db7 --- src/utils/utils.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/utils/utils.py diff --git a/src/utils/utils.py b/src/utils/utils.py deleted file mode 100644 index f1a0818..0000000 --- a/src/utils/utils.py +++ /dev/null @@ -1,17 +0,0 @@ -import matplotlib.pyplot as plt - - -def plot_img_and_mask(img, mask): - classes = mask.shape[0] if len(mask.shape) > 2 else 1 - fig, ax = plt.subplots(1, classes + 1) - ax[0].set_title("Input image") - ax[0].imshow(img) - if classes > 1: - for i in range(classes): - ax[i + 1].set_title(f"Output mask (class {i + 1})") - ax[i + 1].imshow(mask[1, :, :]) - else: - ax[1].set_title(f"Output mask") - ax[1].imshow(mask) - plt.xticks([]), plt.yticks([]) - plt.show()