updates
This commit is contained in:
parent
e3781460f8
commit
af61da5d41
4
train.py
4
train.py
|
@ -185,8 +185,8 @@ def train(
|
||||||
if best_loss == mloss['total']:
|
if best_loss == mloss['total']:
|
||||||
os.system('cp ' + latest + ' ' + best)
|
os.system('cp ' + latest + ' ' + best)
|
||||||
|
|
||||||
# Save backup weights every 5 epochs (optional)
|
# Save backup weights every 10 epochs (optional)
|
||||||
if epoch > 0 and epoch % 5 == 0:
|
if epoch > 0 and epoch % 10 == 0:
|
||||||
os.system('cp ' + latest + ' ' + weights + 'backup%g.pt' % epoch)
|
os.system('cp ' + latest + ' ' + weights + 'backup%g.pt' % epoch)
|
||||||
|
|
||||||
# Calculate mAP
|
# Calculate mAP
|
||||||
|
|
Loading…
Reference in New Issue