Skip to content

Commit

Permalink
Merge pull request #51 from KPLauritzen/b-ensure-weights-dir-when-tra…
Browse files Browse the repository at this point in the history
…ining

Ensures weights/ dir exists
  • Loading branch information
glenn-jocher authored Jun 13, 2020
2 parents 099e6f5 + c3d4d32 commit 19e68e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
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'
Expand Down

0 comments on commit 19e68e8

Please sign in to comment.