Skip to content

Conversation

pmeier
Copy link
Contributor

@pmeier pmeier commented Feb 17, 2023

  1. Add a test to our functional dispatchers that enforces that the format is not changed.
  2. Expand the transforms smoke test to ensure that degenerate boxes stay degenerate.

cc @vfdev-5 @bjuncek

[
info
for info in DISPATCHER_INFOS
if datapoints.BoundingBox in info.kernels and info.dispatcher is not F.convert_format_bounding_box
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to exclude F.convert_format_bounding_box since its only job is to change the format.

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks Philip, LGTM, I'll approve now to unblock. As discussed offline, let's add the same test_bounding_box_format_consistency at the transforms level

@NicolasHug NicolasHug mentioned this pull request Feb 17, 2023
49 tasks
@pmeier pmeier merged commit 56b0497 into pytorch:main Feb 17, 2023
@pmeier pmeier deleted the bbox-tests branch February 17, 2023 12:31
facebook-github-bot pushed a commit that referenced this pull request Mar 28, 2023
Reviewed By: vmoens

Differential Revision: D44416622

fbshipit-source-id: 228ffae17032ab3d1d47c24f4bed0a84b4d17a0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants