# Usage: $ python utils/aws/resume.py | # Usage: $ python utils/aws/resume.py | ||||
import os | import os | ||||
import sys | |||||
from pathlib import Path | from pathlib import Path | ||||
import torch | import torch | ||||
import yaml | import yaml | ||||
sys.path.append('./') # to run '$ python *.py' files in subdirectories | |||||
port = 0 # --master_port | port = 0 # --master_port | ||||
path = Path('').resolve() | path = Path('').resolve() | ||||
for last in path.rglob('*/**/last.pt'): | for last in path.rglob('*/**/last.pt'): |