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
OpenDAS
diffusers
Commits
9d3ff079
Unverified
Commit
9d3ff079
authored
May 30, 2023
by
Patrick von Platen
Committed by
GitHub
May 30, 2023
Browse files
fix tests (#3614)
parent
a359ab4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
examples/community/mixture.py
examples/community/mixture.py
+0
-0
tests/pipelines/stable_diffusion/test_stable_diffusion.py
tests/pipelines/stable_diffusion/test_stable_diffusion.py
+2
-3
No files found.
examples/community/
mixture.py
→
examples/community/mixture.py
View file @
9d3ff079
File moved
tests/pipelines/stable_diffusion/test_stable_diffusion.py
View file @
9d3ff079
...
...
@@ -41,7 +41,6 @@ from diffusers.models.attention_processor import AttnProcessor, LoRAXFormersAttn
from
diffusers.utils
import
load_numpy
,
nightly
,
slow
,
torch_device
from
diffusers.utils.testing_utils
import
(
CaptureLogger
,
disable_full_determinism
,
enable_full_determinism
,
require_torch_2
,
require_torch_gpu
,
...
...
@@ -370,7 +369,7 @@ class StableDiffusionPipelineFastTests(PipelineLatentTesterMixin, PipelineTester
@
unittest
.
skipIf
(
not
torch
.
cuda
.
is_available
(),
reason
=
"xformers requires cuda"
)
def
test_stable_diffusion_attn_processors
(
self
):
disable_full_determinism
()
#
disable_full_determinism()
device
=
"cuda"
# ensure determinism for the device-dependent torch.Generator
components
=
self
.
get_dummy_components
()
sd_pipe
=
StableDiffusionPipeline
(
**
components
)
...
...
@@ -416,7 +415,7 @@ class StableDiffusionPipelineFastTests(PipelineLatentTesterMixin, PipelineTester
image
=
sd_pipe
(
**
inputs
).
images
assert
image
.
shape
==
(
1
,
64
,
64
,
3
)
enable_full_determinism
()
#
enable_full_determinism()
def
test_stable_diffusion_no_safety_checker
(
self
):
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
...
...
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