From f83cc74e402cb12c152da25603e6930dc00c9928 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 1 Sep 2023 14:12:06 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_opd_fcn_abi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/deeplearning/cloud_opd_fcn_abi.py b/modules/deeplearning/cloud_opd_fcn_abi.py index b2314597..1e6a4f93 100644 --- a/modules/deeplearning/cloud_opd_fcn_abi.py +++ b/modules/deeplearning/cloud_opd_fcn_abi.py @@ -364,6 +364,16 @@ class SRCNN: data = data.astype(np.float32) label = label.astype(np.float32) + # if is_training and DO_AUGMENT: + # data_ud = np.flip(data, axis=1) + # label_ud = np.flip(label, axis=1) + # + # data_lr = np.flip(data, axis=2) + # label_lr = np.flip(label, axis=2) + # + # data = np.concatenate([data, data_ud, data_lr]) + # label = np.concatenate([label, label_ud, label_lr]) + return data, label def get_in_mem_data_batch_train(self, idxs): -- GitLab