-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Segmentation masks IoU support #5726
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
Comments
@Ilyabasharov thanks for the recommendation. I think it's an operator we could consider adding in TorchVision. If you send a PR that adds it, I'll be happy to review it. |
I had a thought over this. Also I'm not sure what IoU in segmentation would actually refer to?
Then I think IoU is simply jaccard index between these two? This isn't the case if masks are represented as rle masks. As in currently our mask utils support boolean or bit masks. |
Related discussion: #4415 |
@datumbox oke-aditya |
Extending on @Ilyabasharov 's function, here is a naive extension that accepts batches:
|
@VasLem might become even nicer to use |
🚀 The feature
pairwise distance on segmentation masks like (torchvision.ops.box_iou)
Motivation, pitch
motivation: cost matrix construction in object tracking
Alternatives
pycocotools.maskUtils.iou
Additional context
No response
cc @datumbox @YosuaMichael
The text was updated successfully, but these errors were encountered: