From bd8cd0db2162a78fcb51b63f98b35deb0796d9c4 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 30 Nov 2022 14:29:59 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 4c730626..0f7f8ef1 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -759,8 +759,11 @@ def run_restore_static(directory, ckpt_dir): def run_evaluate_static(in_file, out_file, ckpt_dir): N = 8 - sub_y, sub_x = (N+1) * 128, (N+1) * 128 - y_0, x_0, = 2500 - int(sub_y/2), 2500 - int(sub_x/2) + + sub_y, sub_x = (N * 128) + 6, (N * 128) + 6 + y_0, x_0, = 2432 - int(sub_y/2), 2432 - int(sub_x/2) + x_130 = slice(2, (N * 128) + 4) + y_130 = slice(2, (N * 128) + 4) slc_y_2, slc_x_2 = slice(1, 128*N + 6, 2), slice(1, 128*N + 6, 2) y_2, x_2 = np.arange((128*N)/2 + 3), np.arange((128*N)/2 + 3) @@ -769,17 +772,15 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): h5f = h5py.File(in_file, 'r') grd_a = get_grid_values_all(h5f, 'temp_11_0um_nom') grd_a = grd_a[y_0:y_0+sub_y, x_0:x_0+sub_x] - #grd_a = grd_a[slc_y_2, slc_x_2] + grd_a = grd_a[y_130, x_130] bt = grd_a grd_a = normalize(grd_a, 'temp_11_0um_nom', mean_std_dct) - #grd_a = resample_2d_linear_one(x_2, y_2, grd_a, t, s) grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom') grd_b = grd_b[y_0:y_0+sub_y, x_0:x_0+sub_x] - #grd_b = grd_b[slc_y_2, slc_x_2] + grd_b = grd_b[y_130, x_130] refl = grd_b grd_b = normalize(grd_b, 'refl_0_65um_nom', mean_std_dct) - #grd_b = resample_2d_linear_one(x_2, y_2, grd_b, t, s) grd_c = get_grid_values_all(h5f, label_param) grd_c = grd_c[y_0:y_0+sub_y, x_0:x_0+sub_x] -- GitLab