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
585a0629
Commit
585a0629
authored
Aug 13, 2023
by
comfyanonymous
Browse files
Print unet config when model isn't detected.
parent
8c730dc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
comfy/model_detection.py
comfy/model_detection.py
+1
-0
No files found.
comfy/model_detection.py
View file @
585a0629
...
@@ -113,6 +113,7 @@ def model_config_from_unet_config(unet_config):
...
@@ -113,6 +113,7 @@ def model_config_from_unet_config(unet_config):
if
model_config
.
matches
(
unet_config
):
if
model_config
.
matches
(
unet_config
):
return
model_config
(
unet_config
)
return
model_config
(
unet_config
)
print
(
"no match"
,
unet_config
)
return
None
return
None
def
model_config_from_unet
(
state_dict
,
unet_key_prefix
,
use_fp16
):
def
model_config_from_unet
(
state_dict
,
unet_key_prefix
,
use_fp16
):
...
...
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