Skip to content

fix: Ensure max_size acts as upper bound - #1019

Merged
MaxFeucht merged 4 commits into
mainfrom
make_max_size_upper_bound
Apr 29, 2026
Merged

fix: Ensure max_size acts as upper bound#1019
MaxFeucht merged 4 commits into
mainfrom
make_max_size_upper_bound

Conversation

@MaxFeucht

Copy link
Copy Markdown
Collaborator

In eva's Resize implementation, the max_size arg was intended to act as an upper bound. When size is None, however, max_size acts as a size param causing smaller images to be upscaled. This PR ensures max_size when provided in isolation indeed acts as an upper bound.

MaxFeucht and others added 2 commits April 28, 2026 18:39
Co-authored-by: Copilot <copilot@github.com>

@nkaenzig nkaenzig left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread src/eva/vision/data/transforms/spatial/resize.py Outdated
@MaxFeucht
MaxFeucht enabled auto-merge (squash) April 29, 2026 08:38
@MaxFeucht
MaxFeucht merged commit 3e95a7a into main Apr 29, 2026
8 checks passed
@MaxFeucht
MaxFeucht deleted the make_max_size_upper_bound branch April 29, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants