Amazon AWS EC2 startup and re-startup scripts (#2282)
Browse files- utils/aws/resume.py +3 -0
utils/aws/resume.py
CHANGED
@@ -2,11 +2,14 @@
|
|
2 |
# Usage: $ python utils/aws/resume.py
|
3 |
|
4 |
import os
|
|
|
5 |
from pathlib import Path
|
6 |
|
7 |
import torch
|
8 |
import yaml
|
9 |
|
|
|
|
|
10 |
port = 0 # --master_port
|
11 |
path = Path('').resolve()
|
12 |
for last in path.rglob('*/**/last.pt'):
|
|
|
2 |
# Usage: $ python utils/aws/resume.py
|
3 |
|
4 |
import os
|
5 |
+
import sys
|
6 |
from pathlib import Path
|
7 |
|
8 |
import torch
|
9 |
import yaml
|
10 |
|
11 |
+
sys.path.append('./') # to run '$ python *.py' files in subdirectories
|
12 |
+
|
13 |
port = 0 # --master_port
|
14 |
path = Path('').resolve()
|
15 |
for last in path.rglob('*/**/last.pt'):
|