From f8c675dbc023e5b279b20009bc916fa79c93ecac Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 20 Feb 2019 17:44:41 +0100 Subject: [PATCH] updates --- train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index f725add8..81ab81c5 100644 --- a/train.py +++ b/train.py @@ -163,8 +163,8 @@ def train( os.system('cp ' + latest + ' ' + best) # Save backup weights every 5 epochs - if (epoch > 0) & (epoch % 5 == 0): - os.system('cp ' + latest + ' ' + os.path.join(weights, 'backup{}.pt'.format(epoch))) + # if (epoch > 0) & (epoch % 5 == 0): + # os.system('cp ' + latest + ' ' + os.path.join(weights, 'backup{}.pt'.format(epoch))) # Calculate mAP with torch.no_grad():