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
12a6e931
Commit
12a6e931
authored
Jul 22, 2023
by
comfyanonymous
Browse files
Del the right object when applying lora.
parent
85a8900a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/sd.py
comfy/sd.py
+1
-1
No files found.
comfy/sd.py
View file @
12a6e931
...
@@ -353,7 +353,7 @@ class ModelPatcher:
...
@@ -353,7 +353,7 @@ class ModelPatcher:
temp_weight
=
weight
.
to
(
torch
.
float32
,
copy
=
True
)
temp_weight
=
weight
.
to
(
torch
.
float32
,
copy
=
True
)
out_weight
=
self
.
calculate_weight
(
self
.
patches
[
key
],
temp_weight
,
key
).
to
(
weight
.
dtype
)
out_weight
=
self
.
calculate_weight
(
self
.
patches
[
key
],
temp_weight
,
key
).
to
(
weight
.
dtype
)
set_attr
(
self
.
model
,
key
,
out_weight
)
set_attr
(
self
.
model
,
key
,
out_weight
)
del
temp_
weight
del
weight
return
self
.
model
return
self
.
model
def
calculate_weight
(
self
,
patches
,
weight
,
key
):
def
calculate_weight
(
self
,
patches
,
weight
,
key
):
...
...
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