Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

Handle Multimask scenario

Open TestPrab opened this issue 1 year ago • 2 comments

When the object is more complicated , Segment anything model generates various masks but since we keep multimask_output as False, it takes the first mask directly in file

Instead we should allow multimask scenario and while showing the mask we should show the best mask , like as shown for this example image image image When I am detecting a dog, it will generate all these 3 segments but the mask having maximum score is the last one which is also the appropriate answer for the label dog

TestPrab avatar Apr 19 '23 12:04 TestPrab

image Here's another sample when I detect dog , directly through the notebook

TestPrab avatar Apr 19 '23 12:04 TestPrab

Got it! It's a good idea, I think we will modify our API to support this situation

rentainhe avatar Apr 20 '23 06:04 rentainhe