Skip to content

Conversation

pmeier
Copy link
Contributor

@pmeier pmeier commented Feb 15, 2023

@pmeier pmeier mentioned this pull request Feb 15, 2023
49 tasks
[
(det_transforms.RandomHorizontalFlip(p=1.0), prototype_transforms.RandomHorizontalFlip(p=1.0), {}),
(det_transforms.RandomIoUCrop(), prototype_transforms.RandomIoUCrop(), {"with_mask": False}),
# FIXME: make
Copy link
Contributor

@vfdev-5 vfdev-5 Feb 15, 2023

Choose a reason for hiding this comment

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

@pmeier what's broken here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After removing the Label and OneHotLabel classes, RandomIoUCrop no longer removes labels since it doesn't have a notion of them. To resolve this, we need to follow my suggestion in the comment and use a composed transform with RandomIoUCrop and the new SanitizeBoundingBoxes that @NicolasHug implemented.

@pmeier pmeier marked this pull request as ready for review February 16, 2023 09:33
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.

prototype tests are healthy, as discussed offline the one remaining thing is to remove those APIs from prototype that we have migrated to torchvision. I'll pre-approve now so that you can merge as soon as this is done and not be blocked

@vfdev-5
Copy link
Contributor

vfdev-5 commented Feb 16, 2023

@pmeier
Copy link
Contributor Author

pmeier commented Feb 16, 2023

Yes. Will fix them.

@pmeier
Copy link
Contributor Author

pmeier commented Feb 16, 2023

Relevant CI is green. Let's do this 🎉

@pmeier pmeier merged commit 3991ab9 into main Feb 16, 2023
@pmeier pmeier deleted the migration_transforms_v2 branch February 16, 2023 10:21
facebook-github-bot pushed a commit that referenced this pull request Mar 28, 2023
Summary:

Reviewed By: vmoens

Differential Revision: D44416605

fbshipit-source-id: 0fd313c8279f6be9ed488a19e2d053f33c2f77a5

Co-authored-by: Nicolas Hug <[email protected]>
Co-authored-by: vfdev-5 <[email protected]>
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.

4 participants