From 41d5729be96a6226767cc03b8f72ba8a4f57e42a Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 23 Jan 2023 11:30:26 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 79ac4b3c..ee678897 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -309,6 +309,7 @@ class SRCNN: tmp = np.where(np.isnan(tmp), 0, tmp) if DO_SMOOTH: tmp = smooth_2d(tmp, sigma=SIGMA) + # tmp = median_filter_2d(tmp) if DO_ESPCN: tmp = tmp[:, slc_y_2, slc_x_2] else: # Half res upsampled to full res: @@ -333,6 +334,7 @@ class SRCNN: if DO_SMOOTH: label = np.where(np.isnan(label), 0, label) label = smooth_2d(label, sigma=SIGMA) + # label = median_filter_2d(label) label = label[:, y_128, x_128] if label_param != 'cloud_probability': -- GitLab