Open Shantilal-zanwar opened 2 months ago
did you check the shape of the masks output? generally its something like (n, 1, height, width) where n is the number of boxes. Also I've found that the model is very weird about the coordinates of the boxes. the box cords basically have to be from top left to bottom right, if its in any other position or order it doesn't like it.
Look at this section in their example notebook for images, they explain how to do multiple boxes there
They explain it in the "Batched prompt inputs" section
I am trying to detect handrails using SAM model but it is failing constantly. It work fine when one handrail need to be detected