Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get all objects in a picture without given the points or box information? #27

Open
happybear1015 opened this issue Jul 7, 2023 · 2 comments

Comments

@happybear1015
Copy link

I just want get all the objects

@OroChippw
Copy link
Owner

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

@OroChippw OroChippw reopened this Nov 15, 2023
@cyrillkuettel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants