From 326f89c371d349fca226804deeb7c6f0d1c9050a Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 24 Feb 2021 01:43:39 -0800 Subject: [PATCH] Amazon AWS EC2 startup and re-startup scripts --- utils/aws/resume.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/aws/resume.py b/utils/aws/resume.py index 338c8b10127b..563f22be20dc 100644 --- a/utils/aws/resume.py +++ b/utils/aws/resume.py @@ -2,11 +2,14 @@ # Usage: $ python utils/aws/resume.py import os +import sys from pathlib import Path import torch import yaml +sys.path.append('./') # to run '$ python *.py' files in subdirectories + port = 0 # --master_port path = Path('').resolve() for last in path.rglob('*/**/last.pt'):