We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d59ab commit fdaddafCopy full SHA for fdaddaf
invokeai/app/services/model_install/model_install_default.py
@@ -186,8 +186,9 @@ def install_path(
186
info: AnyModelConfig = self._probe(Path(model_path), config) # type: ignore
187
188
if preferred_name := config.name:
189
- # Careful! Don't use pathlib.Path(...).with_suffix - it can will strip everything after the first dot.
190
- preferred_name = f"{preferred_name}{model_path.suffix}"
+ if Path(model_path).is_file():
+ # Careful! Don't use pathlib.Path(...).with_suffix - it can will strip everything after the first dot.
191
+ preferred_name = f"{preferred_name}{model_path.suffix}"
192
193
dest_path = (
194
self.app_config.models_path / info.base.value / info.type.value / (preferred_name or model_path.name)
0 commit comments