From 11315da683a68521b77d5b976b4ab3ef7f13df74 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Mon, 30 Nov 2020 13:26:00 +0100 Subject: [PATCH] remove type annotations in unused --- sbb_newspapers_org_image/unused.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbb_newspapers_org_image/unused.py b/sbb_newspapers_org_image/unused.py index 9c1fcec..45bfdd7 100644 --- a/sbb_newspapers_org_image/unused.py +++ b/sbb_newspapers_org_image/unused.py @@ -72,7 +72,7 @@ def color_images(seg, n_classes): seg_img[:, :, 2] = segl * c return seg_img -def cleaning_probs(probs: np.ndarray, sigma: float) -> np.ndarray: +def cleaning_probs(probs, sigma): # Smooth if sigma > 0.0: return cv2.GaussianBlur(probs, (int(3 * sigma) * 2 + 1, int(3 * sigma) * 2 + 1), sigma)