vietanhdev / anylabeling

Effortless AI-assisted data labeling with AI support from YOLO, Segment Anything (SAM+SAM2), MobileSAM!!
https://anylabeling.nrl.ai
GNU General Public License v3.0
2.2k stars 236 forks source link

How SAM generates segmentation annotations from points? #53

Closed WangRongsheng closed 1 year ago

WangRongsheng commented 1 year ago

Hi Viet Anh,

I would like to ask you some questions. When I use SAM to do segmentation annotation, I use the point pattern. How does SAM determine the split area based on the points I enter?

Looking forward to your answer!

vietanhdev commented 1 year ago

The SAM is a deep learning model. The decoder receives 2 inputs:

WangRongsheng commented 1 year ago

Can you give some usage demo code? Thank you @vietanhdev