MobileSAM icon indicating copy to clipboard operation
MobileSAM copied to clipboard

Unable to replicate SAM results

Open alexcbb opened this issue 2 years ago • 2 comments

Hello,

Thank you for you work. I've tried to replace your model instead of using SAM in a visualisation pipeline that i've setup. The problem is that I'm unable to obtain as good results as with original SAM, even compared to the Vit-b version. On my test with AutoMask, your model is unable to separate objects as SAM can do. Is the model given in weights your trained model and if yes do you have any clue on what could be wrong ? (the preprocessing is OK as my code is working with original SAM)

Thank you in advance !

alexcbb avatar Jun 30 '23 13:06 alexcbb

Hello,

Thank you for you work. I've tried to replace your model instead of using SAM in a visualisation pipeline that i've setup. The problem is that I'm unable to obtain as good results as with original SAM, even compared to the Vit-b version. On my test with AutoMask, your model is unable to separate objects as SAM can do. Is the model given in weights your trained model and if yes do you have any clue on what could be wrong ? (the preprocessing is OK as my code is working with original SAM)

Thank you in advance !

Thanks for your interest in our work. After our model with pretrained weights is publicly available, it’s the first time that we receive such an issue like this. We provide a demo on hugging face, can you at least get a reasonable results in this simple setup?

ChaoningZhang avatar Jun 30 '23 14:06 ChaoningZhang

The demo is not working at all, each time I want to try to segment an image I get an error as return : Screenshot from 2023-06-30 16-44-04

alexcbb avatar Jun 30 '23 14:06 alexcbb

The demo is not working at all, each time I want to try to segment an image I get an error as return : Screenshot from 2023-06-30 16-44-04

I just tested it and the demo indeed Suddenly crashed with a error. It worked normally before, I kinda know what might be wrong, but need to let my coworkers give it a check tomorrow. Thanks for your patience and letting us know that the demo suddenly doesn’t work.

ChaoningZhang avatar Jun 30 '23 19:06 ChaoningZhang

The demo is not working at all, each time I want to try to segment an image I get an error as return : Screenshot from 2023-06-30 16-44-04

Thanks for notifying us of this issue which has been solved. Please check the demo again.

ChaoningZhang avatar Jul 01 '23 00:07 ChaoningZhang

The demo is not working at all, each time I want to try to segment an image I get an error as return : Screenshot from 2023-06-30 16-44-04

Another demo showing MobileSAM working in your local browser is available at https://mobilesam.glitch.me/ Please also give it a check. Hope it is helpful for you.

ChaoningZhang avatar Jul 01 '23 15:07 ChaoningZhang