Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
aa0531fa
Unverified
Commit
aa0531fa
authored
Mar 23, 2023
by
Pedro Cuenca
Committed by
GitHub
Mar 23, 2023
Browse files
Skip `mps` in text-to-video tests (#2792)
* Skip mps in text-to-video tests. * style * Skip UNet3D mps tests.
parent
dc5b4e23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
tests/models/test_models_unet_3d_condition.py
tests/models/test_models_unet_3d_condition.py
+2
-0
tests/pipelines/text_to_video/test_text_to_video.py
tests/pipelines/text_to_video/test_text_to_video.py
+2
-1
No files found.
tests/models/test_models_unet_3d_condition.py
View file @
aa0531fa
...
@@ -23,6 +23,7 @@ from diffusers.models.attention_processor import LoRAAttnProcessor
...
@@ -23,6 +23,7 @@ from diffusers.models.attention_processor import LoRAAttnProcessor
from
diffusers.utils
import
(
from
diffusers.utils
import
(
floats_tensor
,
floats_tensor
,
logging
,
logging
,
skip_mps
,
torch_device
,
torch_device
,
)
)
from
diffusers.utils.import_utils
import
is_xformers_available
from
diffusers.utils.import_utils
import
is_xformers_available
...
@@ -60,6 +61,7 @@ def create_lora_layers(model):
...
@@ -60,6 +61,7 @@ def create_lora_layers(model):
return
lora_attn_procs
return
lora_attn_procs
@
skip_mps
class
UNet3DConditionModelTests
(
ModelTesterMixin
,
unittest
.
TestCase
):
class
UNet3DConditionModelTests
(
ModelTesterMixin
,
unittest
.
TestCase
):
model_class
=
UNet3DConditionModel
model_class
=
UNet3DConditionModel
...
...
tests/pipelines/text_to_video/test_text_to_video.py
View file @
aa0531fa
...
@@ -35,6 +35,7 @@ from ...test_pipelines_common import PipelineTesterMixin
...
@@ -35,6 +35,7 @@ from ...test_pipelines_common import PipelineTesterMixin
torch
.
backends
.
cuda
.
matmul
.
allow_tf32
=
False
torch
.
backends
.
cuda
.
matmul
.
allow_tf32
=
False
@
skip_mps
class
TextToVideoSDPipelineFastTests
(
PipelineTesterMixin
,
unittest
.
TestCase
):
class
TextToVideoSDPipelineFastTests
(
PipelineTesterMixin
,
unittest
.
TestCase
):
pipeline_class
=
TextToVideoSDPipeline
pipeline_class
=
TextToVideoSDPipeline
params
=
TEXT_TO_IMAGE_PARAMS
params
=
TEXT_TO_IMAGE_PARAMS
...
@@ -155,12 +156,12 @@ class TextToVideoSDPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
...
@@ -155,12 +156,12 @@ class TextToVideoSDPipelineFastTests(PipelineTesterMixin, unittest.TestCase):
def
test_num_images_per_prompt
(
self
):
def
test_num_images_per_prompt
(
self
):
pass
pass
@
skip_mps
def
test_progress_bar
(
self
):
def
test_progress_bar
(
self
):
return
super
().
test_progress_bar
()
return
super
().
test_progress_bar
()
@
slow
@
slow
@
skip_mps
class
TextToVideoSDPipelineSlowTests
(
unittest
.
TestCase
):
class
TextToVideoSDPipelineSlowTests
(
unittest
.
TestCase
):
def
test_full_model
(
self
):
def
test_full_model
(
self
):
expected_video
=
load_numpy
(
expected_video
=
load_numpy
(
...
...
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