Skip to content

Commit

Permalink
Merge pull request eriklindernoren#50 from chenyang1999/patch-3
Browse files Browse the repository at this point in the history
updata the way about how to load pretrain model
  • Loading branch information
eriklindernoren authored Apr 26, 2019
2 parents d01fa6b + 22d8b45 commit fd9f071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions implementations/esrgan/esrgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@

if batches_done % opt.checkpoint_interval == 0:
# Save model checkpoints
torch.save(generator.state_dict(), "saved_models/generator_%d.pth" % batches_done)
torch.save(discriminator.state_dict(), "saved_models/discriminator_%d.pth" % batches_done)
torch.save(generator.state_dict(), "saved_models/generator_%d.pth" % epoch)
torch.save(discriminator.state_dict(), "saved_models/discriminator_%d.pth" %epoch)

0 comments on commit fd9f071

Please sign in to comment.