This commit is contained in:
Glenn Jocher 2019-02-20 17:44:41 +01:00
parent ead4af98b0
commit f8c675dbc0
1 changed files with 2 additions and 2 deletions

View File

@ -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():