samexporter
samexporter copied to clipboard
Segment Anything Model 2 CPP Wrapper for macOS and Ubuntu CPU/GPU
trafficstars
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.