From a4321ec6fb534f9f1fa8e5dca7dd300bcbcf31c4 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 26 Apr 2023 11:30:04 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 9339f9e5..430c6c71 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -668,10 +668,11 @@ class SRCNN: preds = np.concatenate(self.test_preds) print(labels.shape, preds.shape) - labels_denorm = denormalize(labels, label_param, mean_std_dct) - preds_denorm = denormalize(preds, label_param, mean_std_dct) + # labels_denorm = denormalize(labels, label_param, mean_std_dct) + # preds_denorm = denormalize(preds, label_param, mean_std_dct) - return labels_denorm, preds_denorm + # return labels_denorm, preds_denorm + return labels, preds def do_evaluate(self, data, ckpt_dir): @@ -714,9 +715,11 @@ class SRCNN: def run_restore_static(directory, ckpt_dir, out_file=None): nn = SRCNN() - labels_denorm, preds_denorm = nn.run_restore(directory, ckpt_dir) + # labels_denorm, preds_denorm = nn.run_restore(directory, ckpt_dir) + labels, preds = nn.run_restore(directory, ckpt_dir) if out_file is not None: - np.save(out_file, [labels_denorm, preds_denorm]) + # np.save(out_file, [labels_denorm, preds_denorm]) + np.save(out_file, [labels, preds]) def run_evaluate_static(in_file, out_file, ckpt_dir): -- GitLab