Browse Source
Merge pull request #51 from KPLauritzen/b-ensure-weights-dir-when-training
Ensures weights/ dir exists
5.0
Glenn Jocher
GitHub
4 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
train.py
|
|
@@ -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' |