Grounded-Segment-Anything
Grounded-Segment-Anything copied to clipboard
Handle Multimask scenario
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
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
Here's another sample when I detect dog , directly through the notebook
Got it! It's a good idea, I think we will modify our API to support this situation