Skip to content

Promote prototype transforms to beta status #7261

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

Merged
merged 25 commits into from
Feb 16, 2023
Merged

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 15, 2023

@pmeier pmeier mentioned this pull request Feb 15, 2023
49 tasks
@@ -1089,12 +1089,18 @@ def make_datapoints(self, with_mask=True):
"t_ref, t, data_kwargs",
[
(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
Collaborator

@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
Collaborator 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
Collaborator

vfdev-5 commented Feb 16, 2023

@pmeier
Copy link
Collaborator Author

pmeier commented Feb 16, 2023

Yes. Will fix them.

@pmeier
Copy link
Collaborator 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