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
f45157e3
"...test/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "3f16a5a059f8a9a3ae87536afa3d0ebfc10a5023"
Commit
f45157e3
authored
Jul 11, 2024
by
comfyanonymous
Browse files
Fix error message never being shown.
parent
5e1fced6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
comfy/sd.py
comfy/sd.py
+3
-3
No files found.
comfy/sd.py
View file @
f45157e3
...
...
@@ -489,13 +489,13 @@ def load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, o
load_device
=
model_management
.
get_torch_device
()
model_config
=
model_detection
.
model_config_from_unet
(
sd
,
diffusion_model_prefix
)
if
model_config
is
None
:
raise
RuntimeError
(
"ERROR: Could not detect model type of: {}"
.
format
(
ckpt_path
))
unet_dtype
=
model_management
.
unet_dtype
(
model_params
=
parameters
,
supported_dtypes
=
model_config
.
supported_inference_dtypes
)
manual_cast_dtype
=
model_management
.
unet_manual_cast
(
unet_dtype
,
load_device
,
model_config
.
supported_inference_dtypes
)
model_config
.
set_inference_dtype
(
unet_dtype
,
manual_cast_dtype
)
if
model_config
is
None
:
raise
RuntimeError
(
"ERROR: Could not detect model type of: {}"
.
format
(
ckpt_path
))
if
model_config
.
clip_vision_prefix
is
not
None
:
if
output_clipvision
:
clipvision
=
clip_vision
.
load_clipvision_from_sd
(
sd
,
model_config
.
clip_vision_prefix
,
True
)
...
...
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