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

snapshot...

parent 303187b5
No related merge requests found
...@@ -15,6 +15,7 @@ NUM_WU_EPOCHS = 14 ...@@ -15,6 +15,7 @@ NUM_WU_EPOCHS = 14
NUM_EPOCHS = 20 NUM_EPOCHS = 20
num_chans = 2 num_chans = 2
PSNR_MAX = 256.0 PSNR_MAX = 256.0
GENERATOR_ONLY = True
class Trainer(object): class Trainer(object):
...@@ -153,6 +154,8 @@ class Trainer(object): ...@@ -153,6 +154,8 @@ class Trainer(object):
utils.save_checkpoint(checkpoint, "phase_1", self.model_dir) utils.save_checkpoint(checkpoint, "phase_1", self.model_dir)
previous_loss = psnr_metric.result() previous_loss = psnr_metric.result()
start_time = time.time() start_time = time.time()
if GENERATOR_ONLY:
return
def train_gan(self, generator, discriminator): def train_gan(self, generator, discriminator):
""" Implements Training routine for ESRGAN """ Implements Training routine for ESRGAN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment