Skip to content

Instantly share code, notes, and snippets.

@jcreinhold
Last active July 22, 2021 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcreinhold/9453dbd25a7d65ea9831658cdaaa6876 to your computer and use it in GitHub Desktop.
Save jcreinhold/9453dbd25a7d65ea9831658cdaaa6876 to your computer and use it in GitHub Desktop.
Example CSV for lesion-train CLI in tiramisu-brulee
subject flair label pd t1
train_subject_1 /path/to/flair_1.nii.gz /path/to/ground_truth_segmentation_1.nii.gz /path/to/pd_1.nii.gz /path/to/t1_1.nii.gz
train_subject_2 /path/to/flair_2.nii.gz /path/to/ground_truth_segmentation_2.nii.gz /path/to/pd_2.nii.gz /path/to/t1_2.nii.gz
@jcreinhold
Copy link
Author

The names in the subject column are arbitrary designators the row and do not affect data loading.

The non-out columns in the example prediction CSV file are the same columns used here (except the label column which isn't required for prediction).

The order of the columns doesn't matter. The non-label/non-out columns are sorted for input to the network. For example, in this case, the first channel will be a FLAIR image, the second channel will be a PD-w image, and the third channel will be a T1-w image (if you are using a 3D network).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment