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
renzhc
diffusers_dcu
Commits
d840253f
Unverified
Commit
d840253f
authored
Sep 28, 2023
by
Younes Belkada
Committed by
GitHub
Sep 28, 2023
Browse files
[`PEFT`] Fix typo for import (#5217)
Update loaders.py
parent
536c297a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/loaders.py
src/diffusers/loaders.py
+1
-1
No files found.
src/diffusers/loaders.py
View file @
d840253f
...
@@ -2165,7 +2165,7 @@ class LoraLoaderMixin:
...
@@ -2165,7 +2165,7 @@ class LoraLoaderMixin:
self
.
unet
.
unfuse_lora
()
self
.
unet
.
unfuse_lora
()
if
self
.
use_peft_backend
:
if
self
.
use_peft_backend
:
from
peft.tuners.tuner_utils
import
BaseTunerLayer
from
peft.tuners.tuner
s
_utils
import
BaseTunerLayer
def
unfuse_text_encoder_lora
(
text_encoder
):
def
unfuse_text_encoder_lora
(
text_encoder
):
for
module
in
text_encoder
.
modules
():
for
module
in
text_encoder
.
modules
():
...
...
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