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
65ab1052
Unverified
Commit
65ab1052
authored
Dec 05, 2024
by
Sayak Paul
Committed by
GitHub
Dec 05, 2024
Browse files
[Tests] xfail incompatible SD configs. (#10127)
* xfail incompatible SD configs. * fix
parent
40fc389c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
tests/single_file/test_stable_diffusion_upscale_single_file.py
.../single_file/test_stable_diffusion_upscale_single_file.py
+17
-0
No files found.
tests/single_file/test_stable_diffusion_upscale_single_file.py
View file @
65ab1052
import
gc
import
unittest
import
pytest
import
torch
from
diffusers
import
(
...
...
@@ -68,3 +69,19 @@ class StableDiffusionUpscalePipelineSingleFileSlowTests(unittest.TestCase, SDSin
assert
(
numpy_cosine_similarity_distance
(
image_from_pretrained
.
flatten
(),
image_from_single_file
.
flatten
())
<
1e-3
)
@
pytest
.
mark
.
xfail
(
condition
=
True
,
reason
=
"Test fails because of mismatches in the configs but it is very hard to properly fix this considering downstream usecase."
,
strict
=
True
,
)
def
test_single_file_components_with_original_config
(
self
):
super
().
test_single_file_components_with_original_config
()
@
pytest
.
mark
.
xfail
(
condition
=
True
,
reason
=
"Test fails because of mismatches in the configs but it is very hard to properly fix this considering downstream usecase."
,
strict
=
True
,
)
def
test_single_file_components_with_original_config_local_files_only
(
self
):
super
().
test_single_file_components_with_original_config_local_files_only
()
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