Skip to content

fix: auto_resume command line flag isn't respected when when setting experiments_root #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def create_train_val_dataloader(
def load_resume_state(opt: dict[str, Any]):
resume_state_path = None
if opt["auto_resume"]:
state_path = Path("experiments") / opt["name"] / "training_states"
state_path = opt["path"]["training_states"]
if Path.is_dir(state_path):
states = list(
scandir(state_path, suffix="state", recursive=False, full_path=False)
Expand Down