summaryrefslogtreecommitdiff
path: root/augment.py
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2018-09-21 22:53:54 +0200
committerjules@lens <julescarbon@gmail.com>2018-09-21 22:53:54 +0200
commit9c8752432b3f5b0a9f49197d1fe869b512e44f2f (patch)
tree7cc8b077dbc256df29abf4bd875197c88d2337f8 /augment.py
parent002251cccf6afa3359b462726d226eaa2de6c7cb (diff)
epoch problem paranoia
Diffstat (limited to 'augment.py')
-rwxr-xr-xaugment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/augment.py b/augment.py
index cb75880..b5894e1 100755
--- a/augment.py
+++ b/augment.py
@@ -72,6 +72,7 @@ if opt.which_epoch == 'latest':
if os.path.exists(iter_path):
try:
current_epoch, epoch_iter = np.loadtxt(iter_path , delimiter=',', dtype=int)
+ current_epoch = int(current_epoch) - 1
except:
current_epoch, epoch_iter = 1, 0
print('Loading epoch %d' % (current_epoch,))