Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
f2f5e5dc
Commit
f2f5e5dc
authored
Aug 29, 2023
by
comfyanonymous
Browse files
Support SDXL t2i adapters with 3 channel input.
parent
15adc369
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/controlnet.py
comfy/controlnet.py
+1
-1
No files found.
comfy/controlnet.py
View file @
f2f5e5dc
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment