Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
2234877e
Commit
2234877e
authored
Jun 09, 2022
by
Patrick von Platen
Browse files
fix tests
parent
7ba3130c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_utils.py
tests/test_modeling_utils.py
+1
-1
No files found.
tests/test_modeling_utils.py
View file @
2234877e
...
...
@@ -309,5 +309,5 @@ class PipelineTesterMixin(unittest.TestCase):
image_slice
=
image
[
0
,
-
1
,
-
3
:,
-
3
:].
cpu
()
assert
image
.
shape
==
(
1
,
3
,
32
,
32
)
expected_slice
=
torch
.
tensor
([
-
0.7
688
,
-
0.7
690
,
-
0.7
597
,
-
0.7
660
,
-
0.7
713
,
-
0.7
531
,
-
0.
7009
,
-
0.
7098
,
-
0.7
350
])
expected_slice
=
torch
.
tensor
([
-
0.7
383
,
-
0.7
385
,
-
0.7
298
,
-
0.7
364
,
-
0.7
414
,
-
0.7
239
,
-
0.
6737
,
-
0.
6813
,
-
0.7
068
])
assert
(
image_slice
.
flatten
()
-
expected_slice
).
abs
().
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