From a77c4c87b2a2df6fac8479139a8f33656ca031f4 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Thu, 18 May 2023 14:35:34 -0400 Subject: [PATCH] fixed logic error in resolution of model path --- invokeai/backend/model_management/model_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invokeai/backend/model_management/model_manager.py b/invokeai/backend/model_management/model_manager.py index d6aee3652d..8c1a97407d 100644 --- a/invokeai/backend/model_management/model_manager.py +++ b/invokeai/backend/model_management/model_manager.py @@ -318,8 +318,10 @@ class ModelManager(object): # with the equivalent diffusers model if mconfig.format in ["ckpt", "safetensors"]: location = self.convert_ckpt_and_cache(mconfig) + elif mconfig.get('path'): + location = self.globals.root_dir / mconfig.get('path') else: - location = self.globals.root_dir / mconfig.get('path') or mconfig.get('repo_id') + location = mconfig.get('repo_id') elif p := mconfig.get('path'): location = self.globals.root_dir / p elif r := mconfig.get('repo_id'):