Skip to content

fix: preserve aspect ratio in oriented-box training defaults - #590

Draft
cfviotti wants to merge 2 commits into
mainfrom
caio/obb-train-default
Draft

cfviotti wants to merge 2 commits into
mainfrom
caio/obb-train-default

Conversation

@cfviotti

Copy link
Copy Markdown

What does this PR do?

Project.train() currently selects Stretch when it creates default version settings. Use Fit (black edges) in for oriented object detection projects to preserve the aspect ratio. Other project defaults and caller-supplied settings remain unchanged.

Type of Change

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

Testing

  • I have tested this change locally
  • I have added/updated tests for this change

Test details:

  • python -m unittest: 1,296 tests, OK (1 skipped), on Python 3.13.
  • make check_code_quality and Ruff checks on the changed tests pass.
  • Regression tests call Project.train() and check the generation HTTP request, with HTTP responses mocked and Version.train() stubbed. They cover OBB defaults, five existing project types, and explicit settings. The OBB case fails on main because its payload uses Stretch.
  • Live OBB generation and training were not run.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • My changes generate no new warnings or errors
  • I have updated the documentation accordingly, if applicable

Additional Context

This change adjusts only the SDK's default preprocessing. It does not establish end-to-end OBB training support.

This branch has not been deployed

No deployments
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.

1 participant