Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Jun 9, 2023
1 parent 1d6d30b commit 71223c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trainer/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def get_last_checkpoint(path: str) -> Tuple[str, str]:
file_names = fs.glob(os.path.join(path, "*.pth"))
scheme = urlparse(path).scheme
if scheme and path.startswith(scheme + "://"):
# scheme is not preserved in fs.glob, add it
# scheme is not preserved in fs.glob, add it
# back if it exists on the path
file_names = [scheme + "://" + file_name for file_name in file_names]
last_models = {}
Expand Down

0 comments on commit 71223c4

Please sign in to comment.