diff --git a/fastembed/image/transform/operators.py b/fastembed/image/transform/operators.py index 46ff1a73..0d08963d 100644 --- a/fastembed/image/transform/operators.py +++ b/fastembed/image/transform/operators.py @@ -186,7 +186,7 @@ def _get_resize(transforms: list[Transform], config: dict[str, Any]): resample = ( Compose._interpolation_resolver(config.get("interpolation")) if isinstance(config.get("interpolation"), str) - else config.get("interpolation") or Image.Resampling.BICUBIC + else config.get("interpolation", Image.Resampling.BICUBIC) ) if "size" in config: resize_mode = config.get("resize_mode", "shortest")