From a34958f42ce1fcb29b6ade0eb20403c7e737e15b Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 7 Oct 2025 17:49:59 +1100 Subject: [PATCH] fix(mm): sdxl ip adapter identification --- invokeai/backend/model_manager/configs/ip_adapter.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invokeai/backend/model_manager/configs/ip_adapter.py b/invokeai/backend/model_manager/configs/ip_adapter.py index dc6f80d922..ba27f17620 100644 --- a/invokeai/backend/model_manager/configs/ip_adapter.py +++ b/invokeai/backend/model_manager/configs/ip_adapter.py @@ -81,12 +81,12 @@ class IPAdapter_InvokeAI_Config_Base(IPAdapter_Config_Base): raise NotAMatchError(f"unable to determine cross attention dimension: {e}") from e match cross_attention_dim: - case 1280: - return BaseModelType.StableDiffusionXL case 768: return BaseModelType.StableDiffusion1 case 1024: return BaseModelType.StableDiffusion2 + case 2048: + return BaseModelType.StableDiffusionXL case _: raise NotAMatchError(f"unrecognized cross attention dimension {cross_attention_dim}") @@ -154,12 +154,12 @@ class IPAdapter_Checkpoint_Config_Base(IPAdapter_Config_Base): raise NotAMatchError(f"unable to determine cross attention dimension: {e}") from e match cross_attention_dim: - case 1280: - return BaseModelType.StableDiffusionXL case 768: return BaseModelType.StableDiffusion1 case 1024: return BaseModelType.StableDiffusion2 + case 2048: + return BaseModelType.StableDiffusionXL case _: raise NotAMatchError(f"unrecognized cross attention dimension {cross_attention_dim}")