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
56397471
"vscode:/vscode.git/clone" did not exist on "c1be49cb1e1aeca8bb4ec96e20a0b63159bc7738"
Unverified
Commit
56397471
authored
Jan 04, 2023
by
amyeroberts
Committed by
GitHub
Jan 04, 2023
Browse files
Don't call deprecated method (#20904)
parent
52c9e6af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/donut/image_processing_donut.py
src/transformers/models/donut/image_processing_donut.py
+1
-1
No files found.
src/transformers/models/donut/image_processing_donut.py
View file @
56397471
...
...
@@ -430,7 +430,7 @@ class DonutImageProcessor(BaseImageProcessor):
images
=
[
self
.
thumbnail
(
image
=
image
,
size
=
size
)
for
image
in
images
]
if
do_pad
:
images
=
[
self
.
pad
(
image
=
image
,
size
=
size
,
random_padding
=
random_padding
)
for
image
in
images
]
images
=
[
self
.
pad
_image
(
image
=
image
,
size
=
size
,
random_padding
=
random_padding
)
for
image
in
images
]
if
do_rescale
:
images
=
[
self
.
rescale
(
image
=
image
,
scale
=
rescale_factor
)
for
image
in
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