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
chenpangpang
transformers
Commits
f61f072b
Unverified
Commit
f61f072b
authored
Aug 16, 2023
by
Yih-Dar
Committed by
GitHub
Aug 16, 2023
Browse files
Fix `MaskFormerModelIntegrationTest` OOM (#25544)
fix Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
0ed23e4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/maskformer/test_modeling_maskformer.py
tests/models/maskformer/test_modeling_maskformer.py
+1
-1
No files found.
tests/models/maskformer/test_modeling_maskformer.py
View file @
f61f072b
...
...
@@ -539,7 +539,7 @@ class MaskFormerModelIntegrationTest(unittest.TestCase):
image_processor
=
self
.
default_image_processor
inputs
=
image_processor
(
[
np
.
zeros
((
3
,
8
00
,
1
333
)),
np
.
zeros
((
3
,
8
00
,
1
333
))],
[
np
.
zeros
((
3
,
4
00
,
333
)),
np
.
zeros
((
3
,
4
00
,
333
))],
segmentation_maps
=
[
np
.
zeros
((
384
,
384
)).
astype
(
np
.
float32
),
np
.
zeros
((
384
,
384
)).
astype
(
np
.
float32
)],
return_tensors
=
"pt"
,
)
...
...
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