summaryrefslogtreecommitdiff
path: root/train.py
diff options
context:
space:
mode:
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)' %