facebookresearch / facebookresearch/sam2

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

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

[sam-cpp-macos](https://github.com/ryouchinsa/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](https://rectlabel.com).
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.