Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fastembed/image/transform/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ def _get_resize(cls, transforms: list[Transform], config: dict[str, Any]) -> Non
)
)
elif mode == "ConvNextFeatureExtractor":
# HF defaults do_resize to True for ConvNeXT; it also gates the coupled crop
if not config.get("do_resize", True):
return
if "size" in config and "shortest_edge" not in config["size"]:
raise ValueError(
f"Size dictionary must contain 'shortest_edge' key. Got {config['size'].keys()}"
Expand Down
Loading