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
d8e58f0a
"tests/pipelines/vscode:/vscode.git/clone" did not exist on "cdacd8f1ddaf729f30c9be6fb405c76ae8d1c490"
Commit
d8e58f0a
authored
Aug 06, 2023
by
comfyanonymous
Browse files
Detect hint_channels from controlnet.
parent
0cb14a33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/sd.py
comfy/sd.py
+1
-1
No files found.
comfy/sd.py
View file @
d8e58f0a
...
...
@@ -878,7 +878,7 @@ def load_controlnet(ckpt_path, model=None):
use_fp16
=
model_management
.
should_use_fp16
()
controlnet_config
=
model_detection
.
model_config_from_unet
(
controlnet_data
,
prefix
,
use_fp16
).
unet_config
controlnet_config
.
pop
(
"out_channels"
)
controlnet_config
[
"hint_channels"
]
=
3
controlnet_config
[
"hint_channels"
]
=
controlnet_data
[
"{}input_hint_block.0.weight"
.
format
(
prefix
)].
shape
[
1
]
control_model
=
cldm
.
ControlNet
(
**
controlnet_config
)
if
pth
:
...
...
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