From fdeb89784f9af2bfbaaa22522e1d346e9f2f9596 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 27 Feb 2023 15:03:03 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 7359d864..cff7396a 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -138,20 +138,6 @@ def upsample(tmp): return tmp -def upsample_nearest(tmp): - bsize = tmp.shape[0] - tmp_2 = tmp[:, slc_y_2, slc_x_2] - up = np.zeros(bsize, t.size, s.size) - for k in range(bsize): - for j in range(t.size/2): - for i in range(s.size/2): - up[k, j, i] = tmp_2[k, j, i] - up[k, j, i+1] = tmp_2[k, j, i] - up[k, j+1, i] = tmp_2[k, j, i] - up[k, j+1, i+1] = tmp_2[k, j, i] - return up - - class SRCNN: def __init__(self): -- GitLab