vision
vision copied to clipboard
`interpolation` parameter of `AugMix()` wrongly explains `Default is InterpolationMode.NEAREST` instead of `InterpolationMode.BILINEAR`
📚 The doc issue
According to the source code of AugMix(), the default type of interpolation parameter is BILINEAR as shown below:
def __init__(
self,
severity: int = 3,
mixture_width: int = 3,
chain_depth: int = -1,
alpha: float = 1.0,
all_ops: bool = True,
interpolation: Union[InterpolationMode, int] = InterpolationMode.BILINEAR,
fill: Union[_FillType, dict[Union[type, str], _FillType]] = None,
) -> None:
...
But interpolation parameter wrongly explains Default is InterpolationMode.NEAREST instead of InterpolationMode.BILINEAR as shown below:
Parameters: ...
- interpolation (InterpolationMode, optional) – ... Default is InterpolationMode.NEAREST. ...
Suggest a potential alternative/fix
So it should be as shown below:
Parameters: ...
- interpolation (InterpolationMode, optional) – ... Default is InterpolationMode.BILINEAR. ...
Hey @hyperkai, thank you for opening this issue. After reviewing the details, I suggest we consolidate the discussion with #9065, as it appears to be closely related.
Happy to consider a PR to fix the docs @hyperkai