/EdgeSAM-MNN

Quickly inference EdgeSAM with MNN

Primary LanguageC++

EdgeSAM-MNN

One MNN deployment of EdgeSAM
Prompt-In-the-Loop Distillation for On-Device Deployment of SAM
https://github.com/chongzhou96/EdgeSAM

python

Run:

cd mnn_python
python segment_anything_example.py

cpp

Prapare MNN OpenCV lib as in CMakeList.txt, make:

mkdir build; cd build
cmake ..
make

Run:

./sam_demo ../../edgeSAM_encoder.mnn ../../edgeSAM_decoder.mnn ../../resource/truck.jpg

result

prompt segmentation result