Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
johndpope committed Sep 3, 2024
1 parent ee74476 commit b2b51e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ def train_step(self, x_current, x_reference, global_step):
if self.ema:
self.ema.update()

# Logging
# Logging - locally for sanity check
if global_step % self.config.logging.sample_every == 0:
save_image(x_reconstructed, f'x_reconstructed_{global_step}.png', normalize=True)
save_image(x_current, f'x_current_{global_step}.png', normalize=True)
save_image(x_reference, f'x_reference_{global_step}.png', normalize=True)
save_image(x_reconstructed, f'x_reconstructed.png', normalize=True)
save_image(x_current, f'x_current.png', normalize=True)
save_image(x_reference, f'x_reference.png', normalize=True)

return d_loss_avg, g_loss.item(), l_p.item(), l_v.item(), g_loss_gan.item(), x_reconstructed

Expand Down

0 comments on commit b2b51e1

Please sign in to comment.