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