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
69caa964
Commit
69caa964
authored
Jan 31, 2023
by
Patrick von Platen
Browse files
fix slow test
parent
da113364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/pipelines/ddpm/test_ddpm.py
tests/pipelines/ddpm/test_ddpm.py
+1
-2
No files found.
tests/pipelines/ddpm/test_ddpm.py
View file @
69caa964
...
...
@@ -111,6 +111,5 @@ class DDPMPipelineIntegrationTests(unittest.TestCase):
image_slice
=
image
[
0
,
-
3
:,
-
3
:,
-
1
]
assert
image
.
shape
==
(
1
,
32
,
32
,
3
)
expected_slice
=
np
.
array
([
0.4454
,
0.2025
,
0.0315
,
0.3023
,
0.2575
,
0.1031
,
0.0953
,
0.1604
,
0.2020
])
expected_slice
=
np
.
array
([
0.4200
,
0.3588
,
0.1939
,
0.3847
,
0.3382
,
0.2647
,
0.4155
,
0.3582
,
0.3385
])
assert
np
.
abs
(
image_slice
.
flatten
()
-
expected_slice
).
max
()
<
1e-2
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