Unverified Commit c8346cb2 authored by amyeroberts's avatar amyeroberts Committed by GitHub
Browse files

🚨🚨🚨 Vivit update default rescale_factor value (#25547)

* Update default rescale_factor value

* Formatting
parent 8fd65619
......@@ -84,7 +84,7 @@ class VivitImageProcessor(BaseImageProcessor):
do_rescale (`bool`, *optional*, defaults to `True`):
Whether to rescale the image by the specified scale `rescale_factor`. Can be overridden by the `do_rescale`
parameter in the `preprocess` method.
rescale_factor (`int` or `float`, *optional*, defaults to `1/255`):
rescale_factor (`int` or `float`, *optional*, defaults to 1/127.5):
Defines the scale factor to use if rescaling the image. Can be overridden by the `rescale_factor` parameter
in the `preprocess` method.
offset (`bool`, *optional*, defaults to `True`):
......@@ -111,7 +111,7 @@ class VivitImageProcessor(BaseImageProcessor):
do_center_crop: bool = True,
crop_size: Dict[str, int] = None,
do_rescale: bool = True,
rescale_factor: Union[int, float] = 1 / 255,
rescale_factor: Union[int, float] = 1 / 127.5,
offset: bool = True,
do_normalize: bool = True,
image_mean: Optional[Union[float, List[float]]] = None,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment