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
fe574c8b
Unverified
Commit
fe574c8b
authored
Dec 24, 2023
by
Dhruv Nair
Committed by
GitHub
Dec 24, 2023
Browse files
LoRA Unfusion test fix (#6291)
update Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
90b94799
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/lora/test_lora_layers_peft.py
tests/lora/test_lora_layers_peft.py
+3
-1
No files found.
tests/lora/test_lora_layers_peft.py
View file @
fe574c8b
...
@@ -1881,7 +1881,9 @@ class LoraSDXLIntegrationTests(PeftLoraLoaderMixinTests, unittest.TestCase):
...
@@ -1881,7 +1881,9 @@ class LoraSDXLIntegrationTests(PeftLoraLoaderMixinTests, unittest.TestCase):
).
images
).
images
images_without_fusion
=
images
.
flatten
()
images_without_fusion
=
images
.
flatten
()
self
.
assertTrue
(
np
.
allclose
(
images_with_fusion
,
images_without_fusion
,
atol
=
1e-3
))
max_diff
=
numpy_cosine_similarity_distance
(
images_with_fusion
,
images_without_fusion
)
assert
max_diff
<
1e-4
release_memory
(
pipe
)
release_memory
(
pipe
)
def
test_sdxl_1_0_lora_unfusion_effectivity
(
self
):
def
test_sdxl_1_0_lora_unfusion_effectivity
(
self
):
...
...
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