ChaoningZhang / MobileSAM

This is the official code for MobileSAM project that makes SAM lightweight for mobile applications and beyond!
Apache License 2.0
4.79k stars 500 forks source link

Can this model run on mobile devices? #32

Open ExplodedJelly opened 1 year ago

ExplodedJelly commented 1 year ago

I'm considering the possibility of exporting MobileSam as an ONNX model and running it on mobile devices using onnxruntime.

elblogbruno commented 1 year ago

I am interested on this too!

ivyas21 commented 1 year ago

check this out: https://github.com/ChaoningZhang/MobileSAM/pull/7

ChaoningZhang commented 1 year ago

I'm considering the possibility of exporting MobileSam as an ONNX model and running it on mobile devices using onnxruntime.

We have implemented this and are now testing it before merging it. Stay tuned.

ChaoningZhang commented 1 year ago

I am interested on this too!

We have implemented this and are now testing it before merging it. Stay tuned.

ChaoningZhang commented 1 year ago

check this out: #7

Thanks for your help. We haven't got time for checking the pull request yet, however, we really appreciate your effort.

fakeyee commented 1 year ago

I am interested on this too!

We have implemented this and are now testing it before merging it. Stay tuned.

I'm wondering how is the progress about this great work?

lizhiwen19900709 commented 1 year ago

@ChaoningZhang exporting MobileSam as an ONNX model and running it on mobile devices using onnxruntime,Can you provide the example code?

ryouchinsa commented 1 year ago

Here is the Segment Anything CPP Wrapper for macOS. This code is originated from Segment Anything CPP Wrapper and implemented on macOS app RectLabel. We customized the original code so that getMask() uses the previous mask result called as low_res_logits and retain the previous mask array for undo/redo actions.

We hope this macOS version would help to develop the iOS version. Please let us know your opinion.

sam_polygon

ryouchinsa commented 1 year ago

Improved "Create polygon using SAM" feature so that you can label pixels using the pixels option. You can label Segment Anything 1 Billion (SA-1B) like dataset by yourself.

sam-pixels

RobSchilderr commented 9 months ago

I'm considering the possibility of exporting MobileSam as an ONNX model and running it on mobile devices using onnxruntime.

We have implemented this and are now testing it before merging it. Stay tuned.

Is this still coming?