update log_dir to runs/exp #107

pull/1/head
Glenn Jocher 5 years ago
parent 603ea0bfdc
commit 2110f5ee89

@ -910,7 +910,7 @@ def increment_dir(dir, comment=''):
d = sorted(glob.glob(dir + '*')) # directories d = sorted(glob.glob(dir + '*')) # directories
if len(d): if len(d):
d = d[-1].replace(dir, '') d = d[-1].replace(dir, '')
n = int(d[:d.find('_')]) + 1 # increment n = int(d[:d.find('_')] if '_' in d else d) + 1 # increment
return dir + str(n) + ('_' + comment if comment else '') return dir + str(n) + ('_' + comment if comment else '')

Loading…
Cancel
Save