From 10d513c5f7bb403e2924a281240388b243a36b1f Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Mon, 3 Jul 2023 11:19:33 -0400 Subject: [PATCH] add runtime root path to relative vaes and other submodels --- invokeai/backend/model_management/model_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/invokeai/backend/model_management/model_manager.py b/invokeai/backend/model_management/model_manager.py index 7dc174bbce..73c68e8afc 100644 --- a/invokeai/backend/model_management/model_manager.py +++ b/invokeai/backend/model_management/model_manager.py @@ -423,7 +423,7 @@ class ModelManager(object): if submodel_type is not None and hasattr(model_config, submodel_type): override_path = getattr(model_config, submodel_type) if override_path: - model_path = override_path + model_path = self.app_config.root_path / override_path model_type = submodel_type submodel_type = None model_class = MODEL_CLASSES[base_model][model_type] @@ -431,6 +431,7 @@ class ModelManager(object): # TODO: path # TODO: is it accurate to use path as id dst_convert_path = self._get_model_cache_path(model_path) + model_path = model_class.convert_if_required( base_model=base_model, model_path=str(model_path), # TODO: refactor str/Path types logic