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
d2f06dff
Unverified
Commit
d2f06dff
authored
Oct 09, 2023
by
Isaac Chung
Committed by
GitHub
Oct 09, 2023
Browse files
[docstring] Fix docstring for `CLIPImageProcessor` (#26676)
fix docstring for CLIPImageProcessor
parent
3763101f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/transformers/models/clip/image_processing_clip.py
src/transformers/models/clip/image_processing_clip.py
+2
-2
utils/check_docstrings.py
utils/check_docstrings.py
+0
-1
No files found.
src/transformers/models/clip/image_processing_clip.py
View file @
d2f06dff
...
@@ -59,7 +59,7 @@ class CLIPImageProcessor(BaseImageProcessor):
...
@@ -59,7 +59,7 @@ class CLIPImageProcessor(BaseImageProcessor):
Size of the image after resizing. The shortest edge of the image is resized to size["shortest_edge"], with
Size of the image after resizing. The shortest edge of the image is resized to size["shortest_edge"], with
the longest edge resized to keep the input aspect ratio. Can be overridden by `size` in the `preprocess`
the longest edge resized to keep the input aspect ratio. Can be overridden by `size` in the `preprocess`
method.
method.
resample (`PILImageResampling`, *optional*, defaults to `
PILImage
Resampling.BICUBIC`):
resample (`PILImageResampling`, *optional*, defaults to `Resampling.BICUBIC`):
Resampling filter to use if resizing the image. Can be overridden by `resample` in the `preprocess` method.
Resampling filter to use if resizing the image. Can be overridden by `resample` in the `preprocess` method.
do_center_crop (`bool`, *optional*, defaults to `True`):
do_center_crop (`bool`, *optional*, defaults to `True`):
Whether to center crop the image to the specified `crop_size`. Can be overridden by `do_center_crop` in the
Whether to center crop the image to the specified `crop_size`. Can be overridden by `do_center_crop` in the
...
@@ -73,7 +73,7 @@ class CLIPImageProcessor(BaseImageProcessor):
...
@@ -73,7 +73,7 @@ class CLIPImageProcessor(BaseImageProcessor):
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
Scale factor to use if rescaling the image. Can be overridden by `rescale_factor` in the `preprocess`
Scale factor to use if rescaling the image. Can be overridden by `rescale_factor` in the `preprocess`
method.
method.
do_normalize:
do_normalize
(`bool`, *optional*, defaults to `True`)
:
Whether to normalize the image. Can be overridden by `do_normalize` in the `preprocess` method.
Whether to normalize the image. Can be overridden by `do_normalize` in the `preprocess` method.
image_mean (`float` or `List[float]`, *optional*, defaults to `[0.48145466, 0.4578275, 0.40821073]`):
image_mean (`float` or `List[float]`, *optional*, defaults to `[0.48145466, 0.4578275, 0.40821073]`):
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
Mean to use if normalizing the image. This is a float or list of floats the length of the number of
...
...
utils/check_docstrings.py
View file @
d2f06dff
...
@@ -118,7 +118,6 @@ OBJECTS_TO_IGNORE = [
...
@@ -118,7 +118,6 @@ OBJECTS_TO_IGNORE = [
"BridgeTowerTextConfig"
,
"BridgeTowerTextConfig"
,
"BridgeTowerVisionConfig"
,
"BridgeTowerVisionConfig"
,
"BrosModel"
,
"BrosModel"
,
"CLIPImageProcessor"
,
"CLIPTokenizer"
,
"CLIPTokenizer"
,
"CLIPTokenizerFast"
,
"CLIPTokenizerFast"
,
"CLIPVisionConfig"
,
"CLIPVisionConfig"
,
...
...
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