mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(mm): sdxl ip adapter identification
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user