summaryrefslogtreecommitdiff
path: root/train.py
diff options
context:
space:
mode:
authorTaesung Park <taesung_park@berkeley.edu>2017-04-20 02:43:45 -0700
committerTaesung Park <taesung_park@berkeley.edu>2017-04-20 02:43:45 -0700
commit07274cd211e6fe180b8287eb65519e66f87d3e2a (patch)
tree785e9cbe8cbed5cd9daf7f30be8c13f912723b5c /train.py
parent685cfc40f5e9bb529babc2e5ebc1026b864fd119 (diff)
parentc41ab7acdb1e9191d91991d6461ddc4dff3243f7 (diff)
Merge branch 'master' of https://github.com/ruotianluo/pytorch-CycleGAN-and-pix2pix into ruotianluo-master
Diffstat (limited to 'train.py')
-rw-r--r--train.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/train.py b/train.py
index e85042f..da497ce 100644
--- a/train.py
+++ b/train.py
@@ -32,7 +32,7 @@ for epoch in range(1, opt.niter + opt.niter_decay + 1):
errors = model.get_current_errors()
visualizer.print_current_errors(epoch, epoch_iter, errors, iter_start_time)
if opt.display_id > 0:
- visualizer.plot_current_errors(epoch, epoch_iter, opt, errors)
+ visualizer.plot_current_errors(epoch, float(epoch_iter)/num_train, opt, errors)
if total_steps % opt.save_latest_freq == 0:
print('saving the latest model (epoch %d, total_steps %d)' %