Skip to content
Snippets Groups Projects
Commit f65f6625 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent c556e440
No related merge requests found
......@@ -92,6 +92,7 @@ class Trainer(object):
with tf.GradientTape() as tape:
fake = generator.unsigned_call(image_lr)
loss = utils.pixel_loss(image_hr, fake) * (1.0 / self.batch_size)
# loss = utils.pixel_loss_mse(image_hr, fake) * (1.0 / self.batch_size)
psnr_metric(tf.reduce_mean(tf.image.psnr(fake, image_hr, max_val=256.0)))
# gen_vars = list(set(generator.trainable_variables))
gen_vars = generator.trainable_variables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment