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
c0afca2d
Unverified
Commit
c0afca2d
authored
Mar 28, 2023
by
Kashif Rasul
Committed by
GitHub
Mar 28, 2023
Browse files
updated onnx pndm test (#2811)
parent
42d95017
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_img2img.py
...es/stable_diffusion/test_onnx_stable_diffusion_img2img.py
+1
-1
No files found.
tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_img2img.py
View file @
c0afca2d
...
...
@@ -81,7 +81,7 @@ class OnnxStableDiffusionImg2ImgPipelineFastTests(OnnxPipelineTesterMixin, unitt
image_slice
=
image
[
0
,
-
3
:,
-
3
:,
-
1
]
assert
image
.
shape
==
(
1
,
128
,
128
,
3
)
expected_slice
=
np
.
array
([
0.617
10
,
0.5
3390
,
0.49310
,
0.5
5622
,
0.5
098
2
,
0.
58240
,
0.50716
,
0.38629
,
0.4
6856
])
expected_slice
=
np
.
array
([
0.617
37
,
0.5
4642
,
0.53183
,
0.5
4465
,
0.5
274
2
,
0.
60525
,
0.49969
,
0.40655
,
0.4
8154
])
assert
np
.
abs
(
image_slice
.
flatten
()
-
expected_slice
).
max
()
<
1e-1
...
...
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