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

adding preprocessing script #2

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rohanbanerjee
Copy link
Collaborator

This PR adds the preprocessing script to clean the mini-bmpd data for training using ivadomed. The script includes the following steps:

  • Resizing the ground truth images on the basis of the segmentations using sct_register_multimodal. This is done since a size mismatch was found in between the gt and the segmentations.
  • Removal of the unwanted files generated from sct_register_multimodal and renaming the resized image as per the BIDS convention.

To run the script:

  • Get the data
git clone git@data.neuro.polymtl.ca:datasets/mni-bmpd
  • Run the script using:
sct_run_batch -path-data ./mni-bmpd -path-output ./processed_data -jobs -1 -script preprocess.sh

To be done:

  • Add a config.yml file for path folders for better reproducibility

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

Successfully merging this pull request may close these issues.

1 participant