Open happybear1015 opened 1 year ago
This situation is not considered in this repository. If you want to segment all objects, it is recommended to use the newly launched FastSAM or MobileSAM, which will be updated into this repositorylater
Just for completeness, if you really want to do this, you could generate a grid of point prompts over the image, which gives you evenly distributed squares. Then run inference on each square, filter out duplicates/overlaps and merge into a single image. Roughly speaking that's what's being done in the the original repo, they use 64 points.
It's not actually as slow as it sounds, because you can use batch size > 1 to process multiple images
I just want get all the objects