bowang-lab / MedSAM

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

Segmenting other datasets like MRI #185

Closed tarekegn82 closed 10 months ago

tarekegn82 commented 10 months ago

Dear @JohnGiorgi @JunMa11

I have 3D brain tumor MRI dataset let's say brats2021, can I use this model to segment tumor subregions?

JunMa11 commented 10 months ago

Hi @tarekegn82 ,

it contains two simple steps:

  1. preprocess the image: https://github.com/bowang-lab/MedSAM/tree/main/utils#data-preprocessing-and-ensembling
  2. run the inference script (you may need to draw the bounding box)