diff --git a/invokeai/backend/model_manager/install.py b/invokeai/backend/model_manager/install.py index 4ff3537855..461f1face6 100644 --- a/invokeai/backend/model_manager/install.py +++ b/invokeai/backend/model_manager/install.py @@ -388,6 +388,11 @@ class ModelInstall(ModelInstallBase): def _register(self, model_path: Path, info: ModelProbeInfo) -> str: key: str = FastModelHash.hash(model_path) + + model_path = model_path.absolute() + if model_path.is_relative_to(self._app_config.models_path): + model_path = model_path.relative_to(self._app_config.models_path) + registration_data = dict( path=model_path.as_posix(), name=model_path.name if model_path.is_dir() else model_path.stem, diff --git a/invokeai/frontend/install/model_install.py b/invokeai/frontend/install/model_install.py index 90caa9d24e..17da7f16e0 100644 --- a/invokeai/frontend/install/model_install.py +++ b/invokeai/frontend/install/model_install.py @@ -537,7 +537,7 @@ def list_models(installer: ModelInstall, model_type: ModelType): print(f"Installed models of type `{model_type}`:") for model in models: path = (config.models_path / model.path).resolve() - print(f"{model.name:40}{model.base_model:10}{path}") + print(f"{model.name:40}{model.base_model.value:14}{path}") class TqdmProgress(object):