Skip to content

Specify version of data-multi-subject to use #146

@melisende-st-amour

Description

@melisende-st-amour

I tried running the training script for contrast-agnostic using this command: bash contrast-agnostic-softseg-spinalcord/scripts/train_contrast_agnostic.sh

I ran into this error: File "/home/ge.polymtl.ca/mestaa/contrast-agnostic-softseg-spinalcord/nnUnet/02_create_msd_data.py", line 504, in

I checked the contrast-agnostic-softseg-spinalcord/nnUnet/02_create_msd_data.py script and found that these lines are specific to an older version of data-multi-subject where the preprocessed data was in data-multi-subject/derivatives/data_preprocessed

if dataset_name == 'data-multi-subject':
# get only the (preprocessed) subject files, which are in the `derivatives` folder
path_files = os.path.join(dataset_path, 'derivatives', 'data_preprocessed', 'sub-*', '**', f'*.nii.gz')

The most recent version of data-multi-subject doesn't have data_preprocessed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions