ChaoningZhang / MobileSAM

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

Question about the segment_anything part in this code #9

Closed mrbulb closed 1 year ago

mrbulb commented 1 year ago

Hello, thank you for your great work! I notice the the segment_anything part in the code has the same code structure compared with the original SAM. Is there any modification for this part? And if I want to integrate MobileSAM into the project with SAM, all I need to do is to add the mobile_encoder to the original project ?

qiaoyu1002 commented 1 year ago

Hello,thank your for your interest in our work.

We did not modify the segment_anything part in the original code, therefore it is easy for readers to follow! We provide the example for usage in the notebooks, please kindly check that. Also, If you want to integrate MobileSAM into other projects, currently the mobile_encoder and weights folder is necessary. If you have more questions, please let us know.