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
37705712
Unverified
Commit
37705712
authored
Aug 05, 2025
by
Aryan
Committed by
GitHub
Aug 05, 2025
Browse files
[tests] Fix Qwen test_inference slices (#12070)
update
parent
5937e11d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/pipelines/qwenimage/test_qwenimage.py
tests/pipelines/qwenimage/test_qwenimage.py
+1
-1
No files found.
tests/pipelines/qwenimage/test_qwenimage.py
View file @
37705712
...
@@ -160,7 +160,7 @@ class QwenImagePipelineFastTests(PipelineTesterMixin, unittest.TestCase):
...
@@ -160,7 +160,7 @@ class QwenImagePipelineFastTests(PipelineTesterMixin, unittest.TestCase):
self
.
assertEqual
(
generated_image
.
shape
,
(
3
,
32
,
32
))
self
.
assertEqual
(
generated_image
.
shape
,
(
3
,
32
,
32
))
# fmt: off
# fmt: off
expected_slice
=
torch
.
tensor
([
0.563
,
0.63
58
,
0.60
28
,
0.56
56
,
0.58
0
6
,
0.55
1
2
,
0.571
2
,
0.63
3
1
,
0.414
7
,
0.355
8
,
0.562
5
,
0.483
1
,
0.49
5
7
,
0.52
58
,
0.40
75
,
0.50
1
8
])
expected_slice
=
torch
.
tensor
([
0.563
31
,
0.63
677
,
0.60
15
,
0.56
369
,
0.58
16
6
,
0.552
77
,
0.571
76
,
0.63
26
1
,
0.414
66
,
0.355
61
,
0.562
29
,
0.483
34
,
0.497
14
,
0.52
622
,
0.40
872
,
0.50
20
8
])
# fmt: on
# fmt: on
generated_slice
=
generated_image
.
flatten
()
generated_slice
=
generated_image
.
flatten
()
...
...
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