summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-07 15:24:23 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-07 15:24:23 +0200
commit908e0644bacad5850798c52c1c050f5f733040a2 (patch)
tree795eff8c3efc3960b877ce4a82c142eebd167fea
parentab18a90b1a5c6d12faaa979e56903eaca93a7b0c (diff)
augment plus 2
-rwxr-xr-xaugment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/augment.py b/augment.py
index b01f04c..4aab5f1 100755
--- a/augment.py
+++ b/augment.py
@@ -67,7 +67,7 @@ if data_opt.tag == '':
else:
tag = data_opt.tag
-if opt.current_epoch == 'latest':
+if opt.which_epoch == 'latest':
iter_path = os.path.join(opt.checkpoints_dir, opt.name, 'iter.txt')
if os.path.exists(iter_path):
try:
@@ -78,7 +78,7 @@ if opt.current_epoch == 'latest':
else:
current_epoch, epoch_iter = 1, 0
else:
- current_epoch = opt.current_epoch
+ current_epoch = opt.which_epoch
epoch_id = "{:02d}_{:04d}_{:04d}".format(current_epoch, data_opt.augment_take, data_opt.augment_make)
opt.render_dir = os.path.join(opt.results_dir, opt.name, epoch_id)