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 Model 2 CPP Wrapper for macOS and Ubuntu CPU/GPU #453

Open
ryouchinsa opened this issue Nov 18, 2024 · 0 comments
Open

Comments

@ryouchinsa
Copy link

sam-cpp-macos is the Segment Anything Model 2 CPP Wrapper for macOS and Ubuntu CPU/GPU.
This code is to run a SAM2 ONNX model in c++ code and implemented on the macOS app RectLabel.
This code is currently support only image prediction, not video prediction.
We hope this code would be helpful for some users.

On macOS CPU use-case.

  • SAM2 Tiny takes 1s for preprocessing.
  • SAM2 Small takes 2s for preprocessing.
  • SAM2 BasePlus takes 4s for preprocessing.
  • SAM2 Large takes 10s for preprocessing.

sam2_polygon.mp4

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

1 participant