summaryrefslogtreecommitdiff
path: root/train.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-22 20:37:42 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-22 20:37:42 +0200
commit34c9bbea23a1a61eaf866ae95f439e29d22ce242 (patch)
tree5d2c3aeae4a07ffd9ebe134dae154dcc79c542c8 /train.py
parentc62cc5a45a1a80d47b97f6945e02dc10869d2113 (diff)
train
Diffstat (limited to 'train.py')
-rwxr-xr-xtrain.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/train.py b/train.py
index 3cf3627..0fe892d 100755
--- a/train.py
+++ b/train.py
@@ -44,7 +44,9 @@ display_delta = total_steps % opt.display_freq
print_delta = total_steps % opt.print_freq
save_delta = total_steps % opt.save_latest_freq
-for epoch in range(start_epoch, opt.niter + opt.niter_decay + start_epoch):
+print("{} {}".format(start_epoch, start_epoch + opt.niter + opt.niter_decay + 1))
+
+for epoch in range(start_epoch, start_epoch + opt.niter + opt.niter_decay + 1):
epoch_start_time = time.time()
if epoch != start_epoch:
epoch_iter = epoch_iter % dataset_size