diff options
| author | jules@lens <julescarbon@gmail.com> | 2018-09-21 22:53:54 +0200 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2018-09-21 22:53:54 +0200 |
| commit | 9c8752432b3f5b0a9f49197d1fe869b512e44f2f (patch) | |
| tree | 7cc8b077dbc256df29abf4bd875197c88d2337f8 /augment.py | |
| parent | 002251cccf6afa3359b462726d226eaa2de6c7cb (diff) | |
epoch problem paranoia
Diffstat (limited to 'augment.py')
| -rwxr-xr-x | augment.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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,)) |
