Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A utility to export both SAM encoder and predictor to ONNX #809

Open
ltetrel opened this issue Feb 4, 2025 · 0 comments
Open

A utility to export both SAM encoder and predictor to ONNX #809

ltetrel opened this issue Feb 4, 2025 · 0 comments

Comments

@ltetrel
Copy link

ltetrel commented Feb 4, 2025

Hi,

At Kitware Europe, we are currently working on integrating SAM in paraview/vtk as a new cpp plugin for smart and fast selection of point/cell data in a render view. To optimize the computing time, one can definitively cache the image embeddings if the image does not change, hence greatly reducing the annotation time if multiple clicks (only the mask encoding/decoding is called).
To achieve this, we developed internally a utility to export both the SAM encoder (image encoder) and predictor (prompt encoder/decoder + joint decoder) to ONNX.
We thought it could be usefull to the community as well:
https://gitlab.kitware.com/keu-computervision/ml/sam-onnx-exporter

Thanks to @iel-amra who worked on this,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant