MONAI Transform stuck converting 4D NIfTI volumes for 3D multichannel network #4755
Replies: 2 comments 3 replies
-
Hi @AlexWang05, |
Beta Was this translation helpful? Give feedback.
-
Hi @AlexWang05
Hope it helps you, thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am building off of MONAI's 3D segmentation tutorial to work with 4D
NIfTI
data, where the fourth dimension represents the channels to be inputted for the proposed 3D network. I have adapted the tutorial to better segment withMONAI's DynUNet(nnUNet)
, but am facing trouble correctly transforming the data into the desired format to train my 3D network in multichannel.My current approach seems to cause the previously-working DynUNet to get stuck while loading data (estimated time 12+ hrs to load and was Killed by server, was ~1 min previously). I am unable to find if I am transforming/preparing the data correctly for 3D multichannel training.
The current input dimension looks like
[num_px_x, num_px,y, num_slices, num_channels]
, and I hope to transform it into a 3D volume able to be used for a multichannel network.If helpful, the 4th dimension is of length 7, where index 0 represents an intensity value and indices 1-6 represent a one-hot encoded sequence.
A snippet of my function to get transform:
Training data loader
Network function
Other code segments are mostly consistent with MONAI's tutorial
Beta Was this translation helpful? Give feedback.
All reactions