uni-medical / SAM-Med3D

SAM-Med3D: An Efficient General-purpose Promptable Segmentation Model for 3D Volumetric Medical Image
Apache License 2.0
484 stars 64 forks source link

Restore to original size #26

Closed kaneyxx closed 8 months ago

kaneyxx commented 9 months ago

Hi again,

Here's a question that you resampled the images and masks to conduct the experiments. I've trained the model with the 3D pipeline. But I want to resampled to original size, and evaluate then on that resolution. Currently I'm using SimpleITK resampled function and keep them same origin and direction. The resampled seg mask became all 0s might be due to dilution. Any other better way to do this?

blueyo0 commented 9 months ago

Maybe you could use the 'nearest' mode to ensure that resampling doesn't dilute the int values in mask files? You can provide more details of your code to get more precise advices. Thanks 😉