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
parent
commit
19e68e8a7b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      train.py

+ 1
- 0
train.py 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'

Loading…
Cancel
Save