From d1271941ad158dafd9385f4a9cfd997b51fcda5f Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 16 Oct 2019 01:40:40 +0200 Subject: [PATCH] updates --- train.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/train.py b/train.py index ac542e65..4fd8926c 100644 --- a/train.py +++ b/train.py @@ -371,6 +371,11 @@ def train(): print('%g epochs completed in %.3f hours.\n' % (epoch - start_epoch + 1, (time.time() - t0) / 3600)) dist.destroy_process_group() if torch.cuda.device_count() > 1 else None torch.cuda.empty_cache() + + # save to cloud + # os.system(gsutil cp results.txt gs://...) + # os.system(gsutil cp weights/best.pt gs://...) + return results