med-air / 3DSAM-adapter

Holistic Adaptation of SAM from 2D to 3D for Promptable Medical Image Segmentation
149 stars 13 forks source link

How to decide the hyperparameter of dataset preprocessing #7

Closed 22TonyFStark closed 1 year ago

22TonyFStark commented 1 year ago

Hello, I noticed that different hyperparameters are used for different datasets, I wonder how these hyperparameters are chosen(or maybe calculated), could you give some tips? Thanks~ The primary hyperparameters include Intensity Clipping Range, Global Foreground Voxel Intensity Mean/Std, Patch Size, and do_dummy_2D.

peterant330 commented 1 year ago

Hello, I noticed that different hyperparameters are used for different datasets, I wonder how these hyperparameters are chosen(or maybe calculated), could you give some tips? Thanks~ The primary hyperparameters include Intensity Clipping Range, Global Foreground Voxel Intensity Mean/Std, Patch Size, and do_dummy_2D.

We are using the preprocessing given by nnU-Net (Intensity Clipping Range, Global Foreground Voxel Intensity Mean/Std, do_dummy_2D). You preprocess the data using nnUNET and it will output the schemes. You can also refer to its paper (nature.com/articles/s41592-020-01008-z) for details. Basically, nnU-Net uses the 0.5 and 99.5 percentiles of the foreground voxels for clipping as well as the global foreground mean and s.d. for the normalization of all images.

For patch size, we also look at the training data and calculate the size of the lesion, and select the size that can include most of the lesions in training data (even if the prompt is given in the margin of the lesion).

22TonyFStark commented 1 year ago

@peterant1995 Thanks for your advice~