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
986dd820
"examples/vscode:/vscode.git/clone" did not exist on "34fcfb44e30284186ece3f4ac478c1e6444eb0c7"
Commit
986dd820
authored
Mar 13, 2023
by
comfyanonymous
Browse files
Use half() function on model when loading in fp16.
parent
dd35588b
Changes
1
Show 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 @
986dd820
...
...
@@ -854,4 +854,7 @@ def load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, e
model
=
instantiate_from_config
(
model_config
)
model
=
load_model_weights
(
model
,
sd
,
verbose
=
False
,
load_state_dict_to
=
load_state_dict_to
)
if
fp16
:
model
=
model
.
half
()
return
(
ModelPatcher
(
model
),
clip
,
vae
)
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