continue-revolution / sd-webui-segment-anything

Segment Anything for Stable Diffusion WebUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature]: Integrate MobileSAM into the pipeline for lightweight and faster inference

qiaoyu1002 opened this issue · comments

Expected behavior

Reference: https://github.com/ChaoningZhang/MobileSAM

Our project performs on par with the original SAM and keeps exactly the same pipeline as the original SAM except for a change on the image encode, therefore, it is easy to Integrate into any project.

MobileSAM is around 60 times smaller and around 50 times faster than original SAM, and it is around 7 times smaller and around 5 times faster than the concurrent FastSAM. The comparison of the whole pipeline is summarzed as follows:

image

image

Thank you for your contribution and I'm glad to support.

Edit: supported