diff --git a/invokeai/app/services/model_install/model_install_default.py b/invokeai/app/services/model_install/model_install_default.py index 7dee8bfd8c..9b771c5159 100644 --- a/invokeai/app/services/model_install/model_install_default.py +++ b/invokeai/app/services/model_install/model_install_default.py @@ -154,8 +154,12 @@ class ModelInstallService(ModelInstallServiceBase): info: AnyModelConfig = self._probe_model(Path(model_path), config) old_hash = info.current_hash + + if preferred_name := config.get("name"): + preferred_name = Path(preferred_name).with_suffix(model_path.suffix) + dest_path = ( - self.app_config.models_path / info.base.value / info.type.value / (config.get("name") or model_path.name) + self.app_config.models_path / info.base.value / info.type.value / (preferred_name or model_path.name) ) try: new_path = self._copy_model(model_path, dest_path) diff --git a/invokeai/configs/INITIAL_MODELS.yaml b/invokeai/configs/INITIAL_MODELS.yaml index ca2283ab81..811121d1ba 100644 --- a/invokeai/configs/INITIAL_MODELS.yaml +++ b/invokeai/configs/INITIAL_MODELS.yaml @@ -34,7 +34,7 @@ sd-1/main/Analog-Diffusion: recommended: False sd-1/main/Deliberate: description: Versatile model that produces detailed images up to 768px (4.27 GB) - source: XpucT/Deliberate + source: stablediffusionapi/deliberate-v5 recommended: False sd-1/main/Dungeons-and-Diffusion: description: Dungeons & Dragons characters (2.13 GB)