mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-08 20:42:11 +08:00
Support SDXL t2i adapters with 3 channel input.
This commit is contained in:
parent
15adc3699f
commit
f2f5e5dcbb
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user