Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data set preprocessing #40

Open
huyue132 opened this issue Nov 25, 2024 · 1 comment
Open

data set preprocessing #40

huyue132 opened this issue Nov 25, 2024 · 1 comment

Comments

@huyue132
Copy link

Hello, I would like to try other parts segmentation. Is there any public data preprocessing script? Can you share it? Thank you

@peterant330
Copy link
Collaborator

Hi,

The major part of the data preprocessing is included in the dataloader. Please refer to 3DSAM-adapter/dataset/base_dataset.py and 3DSAM-adapter/dataset/datasets.py. The input to the dataloader is actually the original nii.gz file without preprocessing. The only process is to arrange the files into a folder.

While you may need to calculate the intensity_range, global_mean and global_std, they are calculated as the 99.5 and 0.5 percentile, mean and std of the foreground pixels across the training data. You may also use other values such as the windows provided by the clinicians.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants