From fd8a9b539a3eafdd09c3d5b6a77a872dbae25efe Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 9 Oct 2023 16:51:36 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/esrgan_exp.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/modules/deeplearning/esrgan_exp.py b/modules/deeplearning/esrgan_exp.py index 4153cc9a..14140b38 100644 --- a/modules/deeplearning/esrgan_exp.py +++ b/modules/deeplearning/esrgan_exp.py @@ -65,24 +65,6 @@ def get_image_from_file(in_file): return data -def get_image(data): - shape = data.shape - data = data.flatten() - - lo = 0.0 - hi = 160.0 - - data -= lo - data /= (hi - lo) - - not_valid = np.isnan(data) - data[not_valid] = 0 - - data = np.reshape(data, shape) - - return data - - def preprocess_image(hr_image): """ Loads image from path and preprocesses to make it model ready Args: -- GitLab