bowang-lab / MedSAM

Segment Anything in Medical Images
https://www.nature.com/articles/s41467-024-44824-z
Apache License 2.0
2.96k stars 407 forks source link

Inference with grid prompt #309

Closed pawel-gawron closed 3 weeks ago

pawel-gawron commented 2 months ago

Hi,

I'm currently testing the MedSAM2 solution and trying to use the model without prior knowledge of the segmented mask during inference. I'm considering using a grid prompt instead, which would allow me to perform inference on unknown scans. In this case, is it sufficient to use the grid only during inference, or should it also be used during training? If I checked correctly, such options don't seem to be available in MedSAM at the moment, correct?

Thanks!

JunMa11 commented 1 month ago

Hi @pawel-gawron ,

Thanks for your interest.

Yes, it was not supported because this function is relatively not useful in medical images. I recommend using the official SAM2 repo for the grid prompt.