From 1cf4aceedc930bb67d3eb821c939c5f5fb65afbe Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 11 Aug 2022 10:17:53 -0500 Subject: [PATCH] test... --- modules/deeplearning/espcn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/espcn.py b/modules/deeplearning/espcn.py index 71ce8bfb..c9bd3abd 100644 --- a/modules/deeplearning/espcn.py +++ b/modules/deeplearning/espcn.py @@ -196,12 +196,12 @@ class ESPCN: # label = label[:, label_idx, :, :] label = label[:, label_idx, 3:67, 3:67] label = np.expand_dims(label, axis=3) - label = tf.image.resize(label, (32, 32)).numpy() + label = tf.image.resize(label, (32, 32), method='nearest').numpy() # data = data[:, data_idx, :, :] data = data[:, data_idx, 3:67, 3:67] data = np.expand_dims(data, axis=3) - data = tf.image.resize(data, (32, 32)).numpy() + data = tf.image.resize(data, (32, 32), method='nearest').numpy() # data = tf.image.resize(data, (36, 36)).numpy() data = data.astype(np.float32) -- GitLab