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

Segment Anything 2 #23

Open
Acly opened this issue Jul 31, 2024 · 4 comments
Open

Segment Anything 2 #23

Acly opened this issue Jul 31, 2024 · 4 comments

Comments

@Acly
Copy link
Owner

Acly commented Jul 31, 2024

https://github.com/facebookresearch/segment-anything-2

  • It's fast and can be quite small.
  • Detection should be improved
  • Similar to first model it runs on fixed resolution (512 by default)
  • Binary masks

So for precise masks some kind of follow up would still be needed.

No ONNX model out yet.

@Rubenacp
Copy link

Would be great

@Acly
Copy link
Owner Author

Acly commented Sep 3, 2024

Did some tests with exported ONNX models. They're working fine, but performance wise it would be a big regression.

Model Size Inference time
MobileSAM 43 MB 450 ms
SAM2 Small 179 MB 1240 ms
SAM2 Tiny 151 MB 1000 ms

This is on CPU, which is most common scenario. The masks are mostly the same regarding pixel quality. The detection accuracy is expected to better for SAM2.

A distilled/quantized version of SAM2 model would be interesting...

@Rubenacp
Copy link

Rubenacp commented Sep 4, 2024

Thank you, I 'll try it

@feffy380
Copy link

Note: Meta has released updated models (SAM 2.1)

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