Skip to content

Conversation

@grzegorz-roboflow
Copy link
Collaborator

Description

Following resize methods were defaulting to 'Stretch to':

  • 'Fit (reflect edges) in'
  • 'Fit within'
  • 'Fill (with center crop) in'
    This change is logging error when this happens, and is defaulting these methods to 'Fit (grey edges) in'

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this change been tested, please provide a testcase or example of how you tested the change?

CI passing
Tested manually

Any specific deployment considerations

N/A

Docs

N/A

…it within' / 'Fill (with center crop) in' is passed as resize method
"Unsupported resize method '%s', defaulting to 'Fit (grey edges) in' - this may result in degraded model performance.",
self.resize_method,
)
self.resize_method = "Fit (grey edges) in"
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this actually correct or do we implement the correct resize methods?

Copy link
Collaborator

Choose a reason for hiding this comment

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

These are options we give in the UI
CleanShot 2025-09-24 at 09 43 43@2x

Copy link
Collaborator

@hansent hansent left a comment

Choose a reason for hiding this comment

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

LGTM

@grzegorz-roboflow grzegorz-roboflow merged commit c92004d into main Sep 24, 2025
39 checks passed
@grzegorz-roboflow grzegorz-roboflow deleted the fix/add-missing-resize-methods branch September 24, 2025 19:23
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.

3 participants