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
a10107f9
Unverified
Commit
a10107f9
authored
Aug 17, 2023
by
Sayak Paul
Committed by
GitHub
Aug 17, 2023
Browse files
fix: lora sdxl tests (#4652)
parent
d0c30cfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/models/test_lora_layers.py
tests/models/test_lora_layers.py
+1
-0
No files found.
tests/models/test_lora_layers.py
View file @
a10107f9
...
@@ -664,6 +664,7 @@ class SDXLLoraLoaderMixinTests(unittest.TestCase):
...
@@ -664,6 +664,7 @@ class SDXLLoraLoaderMixinTests(unittest.TestCase):
unet_lora_layers
=
lora_components
[
"unet_lora_layers"
],
unet_lora_layers
=
lora_components
[
"unet_lora_layers"
],
text_encoder_lora_layers
=
lora_components
[
"text_encoder_one_lora_layers"
],
text_encoder_lora_layers
=
lora_components
[
"text_encoder_one_lora_layers"
],
text_encoder_2_lora_layers
=
lora_components
[
"text_encoder_two_lora_layers"
],
text_encoder_2_lora_layers
=
lora_components
[
"text_encoder_two_lora_layers"
],
safe_serialization
=
False
,
)
)
self
.
assertTrue
(
os
.
path
.
isfile
(
os
.
path
.
join
(
tmpdirname
,
"pytorch_lora_weights.bin"
)))
self
.
assertTrue
(
os
.
path
.
isfile
(
os
.
path
.
join
(
tmpdirname
,
"pytorch_lora_weights.bin"
)))
sd_pipe
.
load_lora_weights
(
os
.
path
.
join
(
tmpdirname
,
"pytorch_lora_weights.bin"
))
sd_pipe
.
load_lora_weights
(
os
.
path
.
join
(
tmpdirname
,
"pytorch_lora_weights.bin"
))
...
...
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