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
41db2dbf
Commit
41db2dbf
authored
Feb 08, 2023
by
Patrick von Platen
Browse files
correct tests
parent
a7ca03aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py
...table_diffusion_2/test_stable_diffusion_latent_upscale.py
+2
-2
No files found.
tests/pipelines/stable_diffusion_2/test_stable_diffusion_latent_upscale.py
View file @
41db2dbf
...
...
@@ -188,7 +188,7 @@ class StableDiffusionLatentUpscalePipelineIntegrationTests(unittest.TestCase):
expected_image
=
load_numpy
(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/latent-upscaler/astronaut_1024.npy"
)
assert
np
.
abs
((
expected_image
-
image
).
max
())
<
5e-
2
assert
np
.
abs
((
expected_image
-
image
).
max
())
<
5e-
1
def
test_latent_upscaler_fp16_image
(
self
):
generator
=
torch
.
manual_seed
(
33
)
...
...
@@ -216,4 +216,4 @@ class StableDiffusionLatentUpscalePipelineIntegrationTests(unittest.TestCase):
expected_image
=
load_numpy
(
"https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/latent-upscaler/fire_temple_1024.npy"
)
assert
np
.
abs
((
expected_image
-
image
).
max
())
<
5e-
1
assert
np
.
abs
((
expected_image
-
image
).
max
())
<
5e-
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