facebookresearch / sam2

The repository provides code for running inference with the Meta Segment Anything Model 2 (SAM 2), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
12.41k stars 1.14k forks source link

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

Open ryouchinsa opened 3 hours ago

ryouchinsa commented 3 hours ago

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.