Skip to content

Commit

Permalink
Base1xModel: Minor error/warning changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LightArrowsEXE committed Nov 15, 2024
1 parent 5f8d37f commit 45f3788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lvsfunc/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _set_model_path(self) -> None:
if not model_path.exists():
raise FileWasNotFoundError(
"Could not find model file! Please update lvsfunc.", str(self),
dict(parent=model_path.parent, name=model_path.name)
dict(filename=model_path.name, path=model_path.parent)
)

self._model_path = model_path
Expand All @@ -176,7 +176,7 @@ def _set_model_path(self) -> None:
self._model_path = new_path
return

warn(f'{self}: Could not find fp16 model! Using fp32 model instead.')
warn(f'{self}: Could not find fp16 model! Using fp32 model instead.', stacklevel=2)
self._fp16 = False


Expand Down

0 comments on commit 45f3788

Please sign in to comment.