Support for Universal Segmentation Models:Mask2Former, MaskFormer and OneFormer #1358
Closed
srikrishnavignesh
started this conversation in
Ideas
Replies: 2 comments 1 reply
|
@srikrishnavignesh we have quite big refactor happen in latest changes so if you up for challenge, I can check your PR and happy see contribution go for it. |
1 reply
|
PR has been merged @srikrishnavignesh thank you :) |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
HuggingFace Universal Segmentation Model Support (MaskFormer, Mask2Former, OneFormer)
Motivation
I was working on the Solafune aerial tree canopy segmentation competition using Mask2Former and needed SAHI's sliced inference to improve detection of small regions. Since SAHI didn't have support for these models, I built a prototype integration. It worked well enough to help me achieve a rank of 34 in the competition, so I thought it might be useful to contribute back to the community.
What the prototype supports
Mask2FormerForUniversalSegmentation,MaskFormerForInstanceSegmentation,OneFormerForUniversalSegmentationmin_mask_areaparameter to filter small/noisy mask fragmentsCurrent state
I have a working prototype tested across all three models and segmentation types. I can raise a draft PR if you'd like to take a look at the code. If the approach looks good, I'm happy to add tests and docstrings before a formal PR.
This would also be my first open source contribution, so any feedback on the approach or how you'd like it structured is very welcome!
Let me know what you think!
All reactions