From 52434a9c9033006c3ca45eb2f42493384bcefc91 Mon Sep 17 00:00:00 2001 From: matt3o Date: Wed, 17 Jan 2024 12:00:52 +0100 Subject: [PATCH] support for SDXL Plus v2 models --- IPAdapterPlus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPAdapterPlus.py b/IPAdapterPlus.py index d708187..562c7f7 100644 --- a/IPAdapterPlus.py +++ b/IPAdapterPlus.py @@ -583,7 +583,7 @@ class IPAdapterApply: output_cross_attention_dim = ipadapter["ip_adapter"]["1.to_k_ip.weight"].shape[1] self.is_sdxl = output_cross_attention_dim == 2048 - cross_attention_dim = 1280 if self.is_plus and self.is_sdxl else output_cross_attention_dim + cross_attention_dim = 1280 if self.is_plus and self.is_sdxl and not self.is_faceid else output_cross_attention_dim clip_extra_context_tokens = 16 if self.is_plus else 4 if embeds is not None: