Skip to content

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

@ryouchinsa

Description

@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.
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions