From 74c37e789c85d6e7726bc2909bbcac4f3e64c9d5 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 26 Sep 2022 13:44:06 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index ec572ce7..0a46be6c 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -216,10 +216,10 @@ class SRCNN: data_norm = [] for k, param in enumerate(data_params): - data = data[:, k, 3:131:2, 3:131:2] - data = resample(y_64, x_64, data, s, t) - data = normalize(data, param, mean_std_dct, add_noise=add_noise, noise_scale=noise_scale) - data_norm.append(data) + tmp = data[:, k, 3:131:2, 3:131:2] + tmp = resample(y_64, x_64, tmp, s, t) + tmp = normalize(tmp, param, mean_std_dct, add_noise=add_noise, noise_scale=noise_scale) + data_norm.append(tmp) data = np.stack(data_norm, axis=3) data = data.astype(np.float32) -- GitLab