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
edfc4ca6
Commit
edfc4ca6
authored
Mar 19, 2023
by
comfyanonymous
Browse files
Try to fix a vram issue with controlnets.
parent
64ca7175
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
comfy/sd.py
comfy/sd.py
+3
-0
No files found.
comfy/sd.py
View file @
edfc4ca6
...
...
@@ -595,6 +595,9 @@ def load_controlnet(ckpt_path, model=None):
else
:
control_model
.
load_state_dict
(
controlnet_data
,
strict
=
False
)
if
use_fp16
:
control_model
=
control_model
.
half
()
control
=
ControlNet
(
control_model
)
return
control
...
...
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