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
b72a7a83
"git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "08f25ca4fabba995e79491e4c62844682ed8f62f"
Commit
b72a7a83
authored
Jun 26, 2023
by
comfyanonymous
Browse files
Support loras based on the stability unet implementation.
parent
c71a7e6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
comfy/sd.py
comfy/sd.py
+5
-0
No files found.
comfy/sd.py
View file @
b72a7a83
...
@@ -285,6 +285,11 @@ def model_lora_keys(model, key_map={}):
...
@@ -285,6 +285,11 @@ def model_lora_keys(model, key_map={}):
if
key_in
:
if
key_in
:
counter
+=
1
counter
+=
1
for
k
in
sdk
:
if
k
.
startswith
(
"diffusion_model."
)
and
k
.
endswith
(
".weight"
):
key_lora
=
k
[
len
(
"diffusion_model."
):
-
len
(
".weight"
)].
replace
(
"."
,
"_"
)
key_map
[
"lora_unet_{}"
.
format
(
key_lora
)]
=
k
return
key_map
return
key_map
...
...
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