Commit f2f5e5dc authored by comfyanonymous's avatar comfyanonymous
Browse files

Support SDXL t2i adapters with 3 channel input.

parent 15adc369
...@@ -465,7 +465,7 @@ def load_t2i_adapter(t2i_data): ...@@ -465,7 +465,7 @@ def load_t2i_adapter(t2i_data):
if len(down_opts) > 0: if len(down_opts) > 0:
use_conv = True use_conv = True
xl = False xl = False
if cin == 256: if cin == 256 or cin == 768:
xl = True 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) 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: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment