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 masks directly? #14

Open
MonolithFoundation opened this issue Sep 14, 2024 · 2 comments
Open

How to get all masks directly? #14

MonolithFoundation opened this issue Sep 14, 2024 · 2 comments

Comments

@MonolithFoundation
Copy link

How to get all masks directly?

@Matagi1996
Copy link

The automatic mask predictor is sampling a grid of points and calling the decoder again and again, I have actually tried this with the Onnx model (not implemented here) but found it quite slow compared to pytorch, I guess because the decoder does not use flash attn 2 when exported to onnx and this adds up if you inference a few hundret times / image to get all masks.

@MonolithFoundation
Copy link
Author

Have u referenced another sam2 onnx implementation? looks like they make all works, including video tracking.

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

2 participants