Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix flaky test for rotate_bounding_box #7362

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 28, 2023

Fixes https://app.circleci.com/pipelines/github/pytorch/vision/23712/workflows/71c48632-734a-42bc-b2fe-bbdf64f9dcd3/jobs/1845129/tests.

Apart from that there is also a flaky failure for the same op on test_cuda_vs_cpu: https://github.com/pytorch/vision/actions/runs/4292476270/jobs/7478954697#step:10:2949.

That one is really weird given that we are calling the same op multiple times with the input data on same dtype and device so there shouldn't be any flakiness. I've improved the error messages to include the full input data the next time this happens, since I cannot reproduce.

The error happens for XYWH and internally rotate_bounding_box converts to XYXY and back. The dtype is torch.int64 so there might be rounding issues. But no idea why there would be different behavior when calling the op with a batch or not.

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

@NicolasHug NicolasHug merged commit 924d373 into pytorch:main Mar 1, 2023
@github-actions
Copy link

github-actions bot commented Mar 1, 2023

Hey @NicolasHug!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

NicolasHug added a commit to NicolasHug/vision that referenced this pull request Mar 1, 2023
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
NicolasHug added a commit to NicolasHug/vision that referenced this pull request Mar 1, 2023
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
@pmeier pmeier deleted the flaky-rotate-bounding-box branch March 1, 2023 20:35
facebook-github-bot pushed a commit that referenced this pull request Mar 30, 2023
Summary: Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

Reviewed By: vmoens

Differential Revision: D44416587

fbshipit-source-id: c9917d398e438391031f6bb523ec3a52281094a0
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