From f2f5e5dcbb9a39d15514a00de008b50bb4cba8e0 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Tue, 29 Aug 2023 16:44:57 -0400 Subject: [PATCH] Support SDXL t2i adapters with 3 channel input. --- comfy/controlnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/controlnet.py b/comfy/controlnet.py index 7098186..83e1be0 100644 --- a/comfy/controlnet.py +++ b/comfy/controlnet.py @@ -465,7 +465,7 @@ def load_t2i_adapter(t2i_data): if len(down_opts) > 0: use_conv = True xl = False - if cin == 256: + if cin == 256 or cin == 768: xl = True model_ad = comfy.t2i_adapter.adapter.Adapter(cin=cin, channels=[channel, channel*2, channel*4, channel*4][:4], nums_rb=2, ksize=ksize, sk=True, use_conv=use_conv, xl=xl) else: