From 8e6b50c0bcacf96eccd52cea524be38fb41ef194 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 8 Dec 2022 12:21:49 -0600 Subject: [PATCH] snapshot.. --- modules/deeplearning/srcnn_l1b_l2.py | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 7f718216..94311345 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -73,8 +73,6 @@ y_67 = np.arange(67) # y_134_2 = slice(3, 131, 2) x_128_2 = slice(3, 131, 2) y_128_2 = slice(3, 131, 2) -x_128 = slice(3, 131) -y_128 = slice(3, 131) x_130 = slice(2, 132) y_130 = slice(2, 132) @@ -87,6 +85,9 @@ y_130 = slice(2, 132) x_134_2 = slice(1, 134, 2) y_134_2 = slice(1, 134, 2) +x_128 = slice(3, 131) +y_128 = slice(3, 131) + # Kernel size: 3, target size: (128, 128) x_130 = slice(2, 132) y_130 = slice(2, 132) @@ -98,6 +99,21 @@ t = np.arange(1, 66, 0.5) s = np.arange(1, 66, 0.5) x_2 = x_67 y_2 = y_67 +# ---------------------------------------- + +# Kernel size: 5, target_size: (128, 128) +# x_132 = slice(3, 135) +# y_132 = slice(3, 135) +# slc_x = slice(5, 133) +# slc_y = slice(5, 133) +# slc_x_2 = slice(2, 137, 2) +# slc_y_2 = slice(2, 137, 2) +# +# t = np.arange(1, 67, 0.5) +# s = np.arange(1, 67, 0.5) +# x_2 = np.arange(68) +# y_2 = np.arange(68) +# ---------------------------------------- def build_residual_conv2d_block(conv, num_filters, block_name, activation=tf.nn.relu, padding='SAME', -- GitLab