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

Sam1 is giving better results in comparision to Sam2 #148

Open
plutus123 opened this issue Aug 5, 2024 · 3 comments
Open

Sam1 is giving better results in comparision to Sam2 #148

plutus123 opened this issue Aug 5, 2024 · 3 comments

Comments

@plutus123
Copy link

plutus123 commented Aug 5, 2024

So I have had used sam1 and sam2 for image segmentation and compared their results.
The image segmentation done by sam1 is much better than sam2.

Result of sam1:

print(len(masks))

Output:

16

download

Result of sam2:

print(len(masks))

Output:

1

38ce8468-012b-415c-b794-5a1420f7088c

Please can anyone tell me why there is so much difference in the results from both the models. Also suggest me any possible points that I must take into consideration in order to improve the performance of my sam2 model.

@amirmohammadnsh
Copy link

I think you can follow up your question in this issue #93 with the similar topic.

@plutus123
Copy link
Author

plutus123 commented Aug 7, 2024

@amirmohammadnsh Sam2 is unable to detect correct number of masks like in above example that I have had provided sam1 was predicting 16 masks whereas sam2 was detecting only 1 mask.

@thedatamask
Copy link

Yes, check out this video for more details. Very useful where they have compared SAM 1 vs SAM 2 with demo.

SAM vs SAM 2.0: Meta's Segmentation Models . When to use what ? Case Study

https://www.youtube.com/watch?v=vMI-TnyNLYU

Please do like and subscribe to the channel.

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