[docstring] Fix docstring for CLIPImageProcessor (#26676)
fix docstring for CLIPImageProcessor
This commit is contained in:
@@ -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 `PILImageResampling.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):
|
|||||||
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
|
||||||
|
|||||||
@@ -118,7 +118,6 @@ OBJECTS_TO_IGNORE = [
|
|||||||
"BridgeTowerTextConfig",
|
"BridgeTowerTextConfig",
|
||||||
"BridgeTowerVisionConfig",
|
"BridgeTowerVisionConfig",
|
||||||
"BrosModel",
|
"BrosModel",
|
||||||
"CLIPImageProcessor",
|
|
||||||
"CLIPTokenizer",
|
"CLIPTokenizer",
|
||||||
"CLIPTokenizerFast",
|
"CLIPTokenizerFast",
|
||||||
"CLIPVisionConfig",
|
"CLIPVisionConfig",
|
||||||
|
|||||||
Reference in New Issue
Block a user