diff --git a/train.py b/train.py index 58196e65..589a9f7b 100644 --- a/train.py +++ b/train.py @@ -185,8 +185,8 @@ def train( if best_loss == mloss['total']: os.system('cp ' + latest + ' ' + best) - # Save backup weights every 5 epochs (optional) - if epoch > 0 and epoch % 5 == 0: + # Save backup weights every 10 epochs (optional) + if epoch > 0 and epoch % 10 == 0: os.system('cp ' + latest + ' ' + weights + 'backup%g.pt' % epoch) # Calculate mAP