Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
cdaed367
Commit
cdaed367
authored
Jun 10, 2022
by
Lysandre
Browse files
Fix style
parent
2bc30510
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/transformers/models/clip/feature_extraction_clip.py
src/transformers/models/clip/feature_extraction_clip.py
+4
-1
No files found.
src/transformers/models/clip/feature_extraction_clip.py
View file @
cdaed367
...
@@ -149,7 +149,10 @@ class CLIPFeatureExtractor(FeatureExtractionMixin, ImageFeatureExtractionMixin):
...
@@ -149,7 +149,10 @@ class CLIPFeatureExtractor(FeatureExtractionMixin, ImageFeatureExtractionMixin):
if
self
.
do_convert_rgb
:
if
self
.
do_convert_rgb
:
images
=
[
self
.
convert_rgb
(
image
)
for
image
in
images
]
images
=
[
self
.
convert_rgb
(
image
)
for
image
in
images
]
if
self
.
do_resize
and
self
.
size
is
not
None
and
self
.
resample
is
not
None
:
if
self
.
do_resize
and
self
.
size
is
not
None
and
self
.
resample
is
not
None
:
images
=
[
self
.
resize
(
image
=
image
,
size
=
self
.
size
,
resample
=
self
.
resample
,
default_to_square
=
False
)
for
image
in
images
]
images
=
[
self
.
resize
(
image
=
image
,
size
=
self
.
size
,
resample
=
self
.
resample
,
default_to_square
=
False
)
for
image
in
images
]
if
self
.
do_center_crop
and
self
.
crop_size
is
not
None
:
if
self
.
do_center_crop
and
self
.
crop_size
is
not
None
:
images
=
[
self
.
center_crop
(
image
,
self
.
crop_size
)
for
image
in
images
]
images
=
[
self
.
center_crop
(
image
,
self
.
crop_size
)
for
image
in
images
]
if
self
.
do_normalize
:
if
self
.
do_normalize
:
...
...
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