From d1670735babc250047f3addd506c4f20c91db1e4 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 7 Aug 2023 15:33:45 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/esrgan_exp.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/deeplearning/esrgan_exp.py b/modules/deeplearning/esrgan_exp.py
index 096d2373..007874e5 100644
--- a/modules/deeplearning/esrgan_exp.py
+++ b/modules/deeplearning/esrgan_exp.py
@@ -23,8 +23,8 @@ def get_image(in_file):
 
     # s_x = slice(2622, 3134)
     # s_y = slice(2622, 3134)
-    s_x = slice(2366, 3390)
-    s_y = slice(2366, 3390)
+    s_x = slice(2238, 3518)
+    s_y = slice(2238, 3518)
     # s_x = slice(1854, 3902)
     # s_y = slice(1854, 3902)
 
@@ -78,8 +78,11 @@ def preprocess_image(hr_image):
 
 def run(in_file):
     # model = hub.load(SAVED_MODEL_PATH)
+    t0 = time.time()
     hr_image = get_image(in_file)
     hr_image = preprocess_image(hr_image)
+    t1 = time.time()
+    print('processing time: ', (t1-t0))
     print('start inference: ', hr_image.shape)
     t0 = time.time()
     fake_image = model(hr_image)
-- 
GitLab