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
69c76173
Commit
69c76173
authored
Jan 22, 2023
by
Patrick von Platen
Browse files
fix tests
parent
926b34b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/pipelines/dit/test_dit.py
tests/pipelines/dit/test_dit.py
+1
-1
No files found.
tests/pipelines/dit/test_dit.py
View file @
69c76173
...
@@ -111,7 +111,7 @@ class DiTPipelineIntegrationTests(unittest.TestCase):
...
@@ -111,7 +111,7 @@ class DiTPipelineIntegrationTests(unittest.TestCase):
expected_image
=
load_numpy
(
expected_image
=
load_numpy
(
f
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/dit/
{
word
}
.npy"
f
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/dit/
{
word
}
.npy"
)
)
assert
np
.
abs
((
expected_image
-
image
).
abs
())
<
1e-3
assert
np
.
abs
((
expected_image
-
image
).
max
())
<
1e-3
def
test_dit_512_fp16
(
self
):
def
test_dit_512_fp16
(
self
):
generator
=
torch
.
manual_seed
(
0
)
generator
=
torch
.
manual_seed
(
0
)
...
...
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