Update train.py (#3099)

pull/3101/head
Glenn Jocher 2021-05-10 15:26:23 +02:00 committed by GitHub
parent 525f4f86a9
commit 60fe54449d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -367,8 +367,6 @@ def train(hyp, opt, device, tb_writer=None):
# Write
with open(results_file, 'a') as f:
f.write(s + '%10.4g' * 7 % results + '\n') # append metrics, val_loss
if len(opt.name) and opt.bucket:
os.system('gsutil cp %s gs://%s/results/results%s.txt' % (results_file, opt.bucket, opt.name))
# Log
tags = ['train/box_loss', 'train/obj_loss', 'train/cls_loss', # train loss