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
824cb538
Unverified
Commit
824cb538
authored
Feb 27, 2023
by
Will Berman
Committed by
GitHub
Feb 27, 2023
Browse files
attend and excite batch test causing timeouts (#2498)
parent
a0549fea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py
...le_diffusion_2/test_stable_diffusion_attend_and_excite.py
+3
-2
No files found.
tests/pipelines/stable_diffusion_2/test_stable_diffusion_attend_and_excite.py
View file @
824cb538
...
@@ -135,8 +135,9 @@ class StableDiffusionAttendAndExcitePipelineFastTests(PipelineTesterMixin, unitt
...
@@ -135,8 +135,9 @@ class StableDiffusionAttendAndExcitePipelineFastTests(PipelineTesterMixin, unitt
max_diff
=
np
.
abs
(
image_slice
.
flatten
()
-
expected_slice
).
max
()
max_diff
=
np
.
abs
(
image_slice
.
flatten
()
-
expected_slice
).
max
()
self
.
assertLessEqual
(
max_diff
,
1e-3
)
self
.
assertLessEqual
(
max_diff
,
1e-3
)
def
test_inference_batch_single_identical
(
self
):
def
test_inference_batch_consistent
(
self
):
self
.
_test_inference_batch_single_identical
(
relax_max_difference
=
False
)
# NOTE: Larger batch sizes cause this test to timeout, only test on smaller batches
self
.
_test_inference_batch_consistent
(
batch_sizes
=
[
2
,
4
])
@
require_torch_gpu
@
require_torch_gpu
...
...
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