Skip to content

Commit

Permalink
refactor: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Nov 26, 2024
1 parent 2de91d5 commit 33de341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastembed/image/transform/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 33de341

Please sign in to comment.