glenn-jocher
commited on
Commit
•
60fe544
1
Parent(s):
525f4f8
Update train.py (#3099)
Browse files
train.py
CHANGED
@@ -367,8 +367,6 @@ def train(hyp, opt, device, tb_writer=None):
|
|
367 |
# Write
|
368 |
with open(results_file, 'a') as f:
|
369 |
f.write(s + '%10.4g' * 7 % results + '\n') # append metrics, val_loss
|
370 |
-
if len(opt.name) and opt.bucket:
|
371 |
-
os.system('gsutil cp %s gs://%s/results/results%s.txt' % (results_file, opt.bucket, opt.name))
|
372 |
|
373 |
# Log
|
374 |
tags = ['train/box_loss', 'train/obj_loss', 'train/cls_loss', # train loss
|
|
|
367 |
# Write
|
368 |
with open(results_file, 'a') as f:
|
369 |
f.write(s + '%10.4g' * 7 % results + '\n') # append metrics, val_loss
|
|
|
|
|
370 |
|
371 |
# Log
|
372 |
tags = ['train/box_loss', 'train/obj_loss', 'train/cls_loss', # train loss
|