Skip to content

Commit

Permalink
Better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
frostedoyster committed Oct 24, 2024
1 parent 55d3619 commit 811db9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metatrain/cli/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def _process_continue_from(continue_from: str) -> Optional[str]:
# try to find the `outputs` directory; if it doesn't exist
# then we are not continuing from a previous run
if Path("outputs/").exists():
# take the latest day directory
# take the latest year-month-day directory
dir = sorted(Path("outputs/").iterdir())[-1]
# take the latest second directory
# take the latest hour-minute-second directory
dir = sorted(dir.iterdir())[-1]
# take the latest checkpoint. This cannot be done with
# `sorted` because some checkpoint files are named with
Expand Down

0 comments on commit 811db9a

Please sign in to comment.