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
e50c9253
Unverified
Commit
e50c9253
authored
Aug 17, 2023
by
amyeroberts
Committed by
GitHub
Aug 17, 2023
Browse files
YOLOS - reset default return_pixel_mask value (#25559)
Remove added back copied from statement
parent
c8346cb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/transformers/models/yolos/image_processing_yolos.py
src/transformers/models/yolos/image_processing_yolos.py
+1
-2
No files found.
src/transformers/models/yolos/image_processing_yolos.py
View file @
e50c9253
...
@@ -952,12 +952,11 @@ class YolosImageProcessor(BaseImageProcessor):
...
@@ -952,12 +952,11 @@ class YolosImageProcessor(BaseImageProcessor):
)
)
return
padded_image
return
padded_image
# Copied from transformers.models.detr.image_processing_detr.DetrImageProcessor.pad
def
pad
(
def
pad
(
self
,
self
,
images
:
List
[
np
.
ndarray
],
images
:
List
[
np
.
ndarray
],
constant_values
:
Union
[
float
,
Iterable
[
float
]]
=
0
,
constant_values
:
Union
[
float
,
Iterable
[
float
]]
=
0
,
return_pixel_mask
:
bool
=
Tru
e
,
return_pixel_mask
:
bool
=
Fals
e
,
return_tensors
:
Optional
[
Union
[
str
,
TensorType
]]
=
None
,
return_tensors
:
Optional
[
Union
[
str
,
TensorType
]]
=
None
,
data_format
:
Optional
[
ChannelDimension
]
=
None
,
data_format
:
Optional
[
ChannelDimension
]
=
None
,
input_data_format
:
Optional
[
Union
[
str
,
ChannelDimension
]]
=
None
,
input_data_format
:
Optional
[
Union
[
str
,
ChannelDimension
]]
=
None
,
...
...
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