Merge pull request #51 from KPLauritzen/b-ensure-weights-dir-when-training

Ensures weights/ dir exists
This commit is contained in:
Glenn Jocher authored and GitHub committed 2020-06-13 12:54:43 -07:00
commit 19e68e8a7b
1 file changed
+1
+1
View File
@@ -20,6 +20,7 @@ except:
mixed_precision = False # not installed
wdir = 'weights' + os.sep # weights dir
os.makedirs(wdir, exist_ok=True)
last = wdir + 'last.pt'
best = wdir + 'best.pt'
results_file = 'results.txt'