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
5dcdf4ac
Unverified
Commit
5dcdf4ac
authored
May 01, 2025
by
Sayak Paul
Committed by
GitHub
May 01, 2025
Browse files
[tests] xfail recent pipeline tests for specific methods. (#11469)
xfail recent pipeline tests for specific methods.
parent
86294d3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
tests/pipelines/audioldm2/test_audioldm2.py
tests/pipelines/audioldm2/test_audioldm2.py
+7
-1
tests/pipelines/i2vgen_xl/test_i2vgenxl.py
tests/pipelines/i2vgen_xl/test_i2vgenxl.py
+7
-0
No files found.
tests/pipelines/audioldm2/test_audioldm2.py
View file @
5dcdf4ac
...
...
@@ -18,6 +18,7 @@ import gc
import
unittest
import
numpy
as
np
import
pytest
import
torch
from
transformers
import
(
ClapAudioConfig
,
...
...
@@ -44,7 +45,7 @@ from diffusers import (
LMSDiscreteScheduler
,
PNDMScheduler
,
)
from
diffusers.utils.testing_utils
import
enable_full_determinism
,
nightly
,
torch_device
from
diffusers.utils.testing_utils
import
enable_full_determinism
,
is_torch_version
,
nightly
,
torch_device
from
..pipeline_params
import
TEXT_TO_AUDIO_BATCH_PARAMS
,
TEXT_TO_AUDIO_PARAMS
from
..test_pipelines_common
import
PipelineTesterMixin
...
...
@@ -474,6 +475,11 @@ class AudioLDM2PipelineFastTests(PipelineTesterMixin, unittest.TestCase):
# increase tolerance from 1e-4 -> 3e-4 to account for large composite model
super
().
test_dict_tuple_outputs_equivalent
(
expected_max_difference
=
3e-4
)
@
pytest
.
mark
.
xfail
(
condition
=
is_torch_version
(
">="
,
"2.7"
),
reason
=
"Test currently fails on PyTorch 2.7."
,
strict
=
False
,
)
def
test_inference_batch_single_identical
(
self
):
# increase tolerance from 1e-4 -> 2e-4 to account for large composite model
self
.
_test_inference_batch_single_identical
(
expected_max_diff
=
2e-4
)
...
...
tests/pipelines/i2vgen_xl/test_i2vgenxl.py
View file @
5dcdf4ac
...
...
@@ -18,6 +18,7 @@ import random
import
unittest
import
numpy
as
np
import
pytest
import
torch
from
transformers
import
(
CLIPImageProcessor
,
...
...
@@ -39,6 +40,7 @@ from diffusers.utils.testing_utils import (
backend_empty_cache
,
enable_full_determinism
,
floats_tensor
,
is_torch_version
,
numpy_cosine_similarity_distance
,
require_torch_accelerator
,
skip_mps
,
...
...
@@ -180,6 +182,11 @@ class I2VGenXLPipelineFastTests(SDFunctionTesterMixin, PipelineTesterMixin, unit
assert
np
.
abs
(
image_slice
.
flatten
()
-
expected_slice
).
max
()
<
1e-2
@
pytest
.
mark
.
xfail
(
condition
=
is_torch_version
(
">="
,
"2.7"
),
reason
=
"Test currently fails on PyTorch 2.7."
,
strict
=
False
,
)
def
test_save_load_local
(
self
):
super
().
test_save_load_local
(
expected_max_difference
=
0.006
)
...
...
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