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
587f89fe
Commit
587f89fe
authored
May 14, 2023
by
comfyanonymous
Browse files
Enable safe loading for upscale models.
parent
acff543d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy_extras/nodes_upscale_model.py
comfy_extras/nodes_upscale_model.py
+1
-1
No files found.
comfy_extras/nodes_upscale_model.py
View file @
587f89fe
...
...
@@ -17,7 +17,7 @@ class UpscaleModelLoader:
def
load_model
(
self
,
model_name
):
model_path
=
folder_paths
.
get_full_path
(
"upscale_models"
,
model_name
)
sd
=
comfy
.
utils
.
load_torch_file
(
model_path
)
sd
=
comfy
.
utils
.
load_torch_file
(
model_path
,
safe_load
=
True
)
out
=
model_loading
.
load_state_dict
(
sd
).
eval
()
return
(
out
,
)
...
...
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