Leyo commited on
Commit
df7ef89
1 Parent(s): 9813038

bilinear instead of bicubic

Browse files
Files changed (1) hide show
  1. image_processing_siglip.py +2 -2
image_processing_siglip.py CHANGED
@@ -53,7 +53,7 @@ class SiglipImageProcessor(BaseImageProcessor):
53
  `do_resize` in the `preprocess` method.
54
  size (`Dict[str, int]` *optional*, defaults to `{"height": 224, "width": 224}`):
55
  Size of the image after resizing. Can be overridden by `size` in the `preprocess` method.
56
- resample (`PILImageResampling`, *optional*, defaults to `Resampling.BICUBIC`):
57
  Resampling filter to use if resizing the image. Can be overridden by `resample` in the `preprocess` method.
58
  do_rescale (`bool`, *optional*, defaults to `True`):
59
  Whether to rescale the image by the specified scale `rescale_factor`. Can be overridden by `do_rescale` in
@@ -79,7 +79,7 @@ class SiglipImageProcessor(BaseImageProcessor):
79
  self,
80
  do_resize: bool = True,
81
  size: Dict[str, int] = None,
82
- resample: PILImageResampling = PILImageResampling.BICUBIC,
83
  do_rescale: bool = True,
84
  rescale_factor: Union[int, float] = 1 / 255,
85
  do_normalize: bool = True,
 
53
  `do_resize` in the `preprocess` method.
54
  size (`Dict[str, int]` *optional*, defaults to `{"height": 224, "width": 224}`):
55
  Size of the image after resizing. Can be overridden by `size` in the `preprocess` method.
56
+ resample (`PILImageResampling`, *optional*, defaults to `Resampling.BILINEAR`):
57
  Resampling filter to use if resizing the image. Can be overridden by `resample` in the `preprocess` method.
58
  do_rescale (`bool`, *optional*, defaults to `True`):
59
  Whether to rescale the image by the specified scale `rescale_factor`. Can be overridden by `do_rescale` in
 
79
  self,
80
  do_resize: bool = True,
81
  size: Dict[str, int] = None,
82
+ resample: PILImageResampling = PILImageResampling.BILINEAR,
83
  do_rescale: bool = True,
84
  rescale_factor: Union[int, float] = 1 / 255,
85
  do_normalize: bool = True,