-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Make RandomIoUCrop compatible with SanitizeBoundingBoxes #7268
Conversation
# set above (which is fine). | ||
(True, "ssd"): 4, | ||
(True, "ssdlite"): 3, | ||
}.get((sanitize, data_augmentation), num_boxes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I was reviewing that code, I'd probably swear a bit (I can refactor if needed)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit inline. Otherwise, could you also address
vision/test/test_prototype_transforms_consistency.py
Lines 1093 to 1099 in 3991ab9
# FIXME: make | |
# v2_transforms.Compose([ | |
# v2_transforms.RandomIoUCrop(), | |
# v2_transforms.SanitizeBoundingBoxes() | |
# ]) | |
# work | |
# (det_transforms.RandomIoUCrop(), v2_transforms.RandomIoUCrop(), {"with_mask": False}), |
to make sure we actually have the same behavior as we currently have on our references?
The recent changes you made LGTM @pmeier - thanks a lot for catching the bugs and for the fixes. Happy to merge on my side (can't approve myself) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stamp :)
Hey @pmeier! 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 |
) Summary: Co-authored-by: Philip Meier <[email protected]> Reviewed By: vmoens Differential Revision: D44416643 fbshipit-source-id: b2e1ec5f1a9fa1edc2bb5a459606bcf30c9dbeb0
cc @vfdev-5 @bjuncek @pmeier