Replies: 2 comments 8 replies
-
Hi @mpsampat , For this case, you can try to make every 4 files under 1 dir, use this dir as the image path for 1 data. Thanks. |
Beta Was this translation helpful? Give feedback.
7 replies
-
@Nic-Ma can I read the 4 nifti files and save them as a 4-D nifti instead ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All!
I have a basic question.
I have a classification task where I have 4 nifti files per subjects: these are FLAIR, T2w, T1w and T1w_CE.
I was able to build an ImageDataset with one one nifti file type as input:
train_ds = ImageDataset(image_files=images, labels=labels, transform=train_transforms)
where image files is
'/mnt/kg/rsna//train/00000/T1CE_to_SRI.nii.gz',
'/mnt/kg/rsna//train/00002/T1CE_to_SRI.nii.gz',
'/mnt/kg/rsna//train/00003/T1CE_to_SRI.nii.gz',
'/mnt//kg/rsna//train/00005/T1CE_to_SRI.nii.gz',
'/mnt/kg/rsna//train/00006/T1CE_to_SRI.nii.gz',
However I cannot figure out how to build an ImageDataset with 4 nifti files per subject,
Could you please help me with this issue ?
Thanks
Mehul
Beta Was this translation helpful? Give feedback.
All reactions