* fix #541 #542 * Update train.py Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
1 parent
8ad6e53760
commit
a209a32019
2 files changed
+3
-3
No files matched your search
@@ -377,7 +377,7 @@ def train(hyp, tb_writer, opt, device):
|
||||
|
||||
# Save last, best and delete
|
||||
torch.save(ckpt, last)
|
||||
if (best_fitness == fi) and not final_epoch:
|
||||
if best_fitness == fi:
|
||||
torch.save(ckpt, best)
|
||||
del ckpt
|
||||
# end epoch ----------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user