ksugar / qupath-extension-sam

QuPath extension for Segment Anything Model (SAM)
GNU General Public License v3.0
91 stars 13 forks source link

Support SAM2 #19

Closed ksugar closed 3 months ago

ksugar commented 3 months ago

Add an option to support SAM2. https://ai.meta.com/research/publications/sam-2-segment-anything-in-images-and-videos/ https://github.com/facebookresearch/segment-anything-2

kess-one commented 3 months ago

Please excuse my ignorance, could you please give more detail on how to implement this new model? Thanks so much!

ksugar commented 3 months ago

Hi @kess-one, thank you for your question. About the segmentation algorithm, I just need to add an option to the list for SAM2. One of the powerful aspect of SAM2 is a tracking algorithm using a video data. I will need a little more work for that. I am thinking to support the segmentation algorithm first, then move on to the tracking.

ksugar commented 3 months ago

v0.6.0 now supports SAM2. https://github.com/ksugar/qupath-extension-sam/pull/21 It requires the samapi server v0.5.0 or above.