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

Stricter SanitizeBoundingBoxes labels_getter heuristic #7880

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Aug 24, 2023

Fixes #7878

cc @vfdev-5

@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 24, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/7880

Note: Links to docs will display an error until the docs builds have been completed.

❌ 7 New Failures, 1 Unrelated Failure

As of commit 9d11700 with merge base 054432d (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:15 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:16 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:16 — with GitHub Actions Inactive
@NicolasHug NicolasHug temporarily deployed to pytorchbot-env August 24, 2023 14:16 — with GitHub Actions Inactive
v2.SanitizeBoundingBoxes(),
v2.RandomResizedCrop(size=(224, 224), antialias=True),
v2.RandomPhotometricDistort(p=1),
v2.RandomHorizontalFlip(p=1),
Copy link
Member Author

Choose a reason for hiding this comment

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

I was actually mis-using SanitizeBoundingBoxes() as I wasn't passing a label, so I should have set labels_getter to None (see non-regression test below). I decided to just remove SanitizeBoundingBoxes here because that would require making the input a dict, also forcing to change the narrative below. It's OK, SanitizeBoundingBoxes will be clearly used and mentioned in the e2e example that I'm working on now.

@NicolasHug NicolasHug requested a review from pmeier August 24, 2023 14:16
Copy link
Contributor

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

LGTM if CI is green, thanks!

@NicolasHug
Copy link
Member Author

CI is toasted, some linux unit tests jobs are passing so I'll merge, thanks for the quick review!

@NicolasHug NicolasHug merged commit f7c7bdf into pytorch:main Aug 24, 2023
55 of 63 checks passed
facebook-github-bot pushed a commit that referenced this pull request Sep 6, 2023
Summary: (Note: this ignores all push blocking failures!)

Reviewed By: matteobettini

Differential Revision: D48900400

fbshipit-source-id: 022f3867c943f6938ec9ac9b43b13eacf53e14d4
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.

SanitizeBoundingBox()(img, bbox) converts bbox to a Tensor
3 participants