samexporter icon indicating copy to clipboard operation
samexporter copied to clipboard

Segment Anything Model 2 CPP Wrapper for macOS and Ubuntu CPU/GPU

Open ryouchinsa opened this issue 1 year ago • 0 comments
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.

ryouchinsa avatar Nov 18 '24 19:11 ryouchinsa