Skip to content

Commit

Permalink
fix clickable file path link for pretrain
Browse files Browse the repository at this point in the history
  • Loading branch information
the-database committed Jan 7, 2025
1 parent 695facd commit d1352b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions traiNNer/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def load_network(
logger.info(
"Loading %s model from %s, with spandrel.",
net.__class__.__name__,
clickable_file_path(Path(load_path).parent, load_path),
clickable_file_path(Path(load_path).absolute().parent, load_path),
)
else:
net = self.get_bare_model(net)
Expand Down Expand Up @@ -592,7 +592,7 @@ def load_network(
logger.info(
"Loading %s model from %s, with param key: [bold]%s[/bold].",
net.__class__.__name__,
clickable_file_path(Path(load_path).parent, load_path),
clickable_file_path(Path(load_path).absolute().parent, load_path),
param_key,
extra={"markup": True},
)
Expand Down

0 comments on commit d1352b1

Please sign in to comment.