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
fd56f7f0
Unverified
Commit
fd56f7f0
authored
Aug 22, 2023
by
Rafael Padilla
Committed by
GitHub
Aug 22, 2023
Browse files
removing unnecesssary extra parameter (#25643)
parent
e20fab0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
src/transformers/models/conditional_detr/image_processing_conditional_detr.py
...els/conditional_detr/image_processing_conditional_detr.py
+1
-3
src/transformers/models/deformable_detr/image_processing_deformable_detr.py
...odels/deformable_detr/image_processing_deformable_detr.py
+1
-3
src/transformers/models/detr/image_processing_detr.py
src/transformers/models/detr/image_processing_detr.py
+1
-3
No files found.
src/transformers/models/conditional_detr/image_processing_conditional_detr.py
View file @
fd56f7f0
...
...
@@ -1314,9 +1314,7 @@ class ConditionalDetrImageProcessor(BaseImageProcessor):
]
if
annotations
is
not
None
:
annotations
=
[
self
.
normalize_annotation
(
annotation
,
get_image_size
(
image
,
input_data_format
),
input_data_format
=
input_data_format
)
self
.
normalize_annotation
(
annotation
,
get_image_size
(
image
,
input_data_format
))
for
annotation
,
image
in
zip
(
annotations
,
images
)
]
...
...
src/transformers/models/deformable_detr/image_processing_deformable_detr.py
View file @
fd56f7f0
...
...
@@ -1312,9 +1312,7 @@ class DeformableDetrImageProcessor(BaseImageProcessor):
]
if
annotations
is
not
None
:
annotations
=
[
self
.
normalize_annotation
(
annotation
,
get_image_size
(
image
,
input_data_format
),
input_data_format
=
input_data_format
)
self
.
normalize_annotation
(
annotation
,
get_image_size
(
image
,
input_data_format
))
for
annotation
,
image
in
zip
(
annotations
,
images
)
]
...
...
src/transformers/models/detr/image_processing_detr.py
View file @
fd56f7f0
...
...
@@ -1284,9 +1284,7 @@ class DetrImageProcessor(BaseImageProcessor):
]
if
annotations
is
not
None
:
annotations
=
[
self
.
normalize_annotation
(
annotation
,
get_image_size
(
image
,
input_data_format
),
input_data_format
=
input_data_format
)
self
.
normalize_annotation
(
annotation
,
get_image_size
(
image
,
input_data_format
))
for
annotation
,
image
in
zip
(
annotations
,
images
)
]
...
...
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