From dc03c0bbf7ad9cf5a67848d86f214e27d3643083 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 6 Mar 2023 12:51:10 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/cnn_cld_frac_mod_res.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/deeplearning/cnn_cld_frac_mod_res.py b/modules/deeplearning/cnn_cld_frac_mod_res.py index bf690cf8..df363c4b 100644 --- a/modules/deeplearning/cnn_cld_frac_mod_res.py +++ b/modules/deeplearning/cnn_cld_frac_mod_res.py @@ -612,7 +612,8 @@ class SRCNN: # decorator commented out because pred.numpy(): pred not evaluated yet. def predict(self, inputs, labels): pred = self.model([inputs], training=False) - t_loss = self.loss(tf.squeeze(labels), pred) + # t_loss = self.loss(tf.squeeze(labels), pred) + t_loss = self.loss(labels, pred) self.test_labels.append(labels) self.test_preds.append(pred.numpy()) -- GitLab