From 9fc14b0f08b97039ba9fa16c84f352ef11742ad8 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 5 Oct 2023 11:08:13 -0500 Subject: [PATCH] snapshot... --- modules/GSOC/E2_ESRGAN/lib/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/GSOC/E2_ESRGAN/lib/utils.py b/modules/GSOC/E2_ESRGAN/lib/utils.py index ae66b4fd..f724c3d2 100644 --- a/modules/GSOC/E2_ESRGAN/lib/utils.py +++ b/modules/GSOC/E2_ESRGAN/lib/utils.py @@ -216,14 +216,14 @@ def RelativisticAverageLoss(non_transformed_disc, type_="G"): # Standard GAN loss functions --------------------------------------- -def gen_loss(non_transformed_disc, fake_image): +def std_loss_G(non_transformed_disc, fake_image): fake_logits = non_transformed_disc(fake_image) fake_loss = tf.nn.sigmoid_cross_entropy_with_logits( labels=tf.ones_like(fake_logits), logits=fake_logits) return fake_loss -def disc_loss(non_transformed_disc, real_image, fake_image): +def std_loss_D(non_transformed_disc, real_image, fake_image): real_logits = non_transformed_disc(real_image) fake_logits = non_transformed_disc(fake_image) -- GitLab