-
How can I define a set of transformations for a 3D UNet model given a set of volumes with a variable number of slices? I.e. I have 512x512xA slices and A is variable (e.g. 42, 120, 56). I tried the transformation with RandCropByPosNegLabel with the parameter allow_smaller=True, but it doesn't work correctly. Is there already an example in the form of a notebook or file? Thanks in advanced! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @emi-dm, for images with variable slice numbers, you will still apply the set of transformations to each volume, regardless of the slice count. Could you please share more information about your use case or perhaps share a small piece of code that can reproduce the issue? Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
When the network is downsampled 4 times, the input should ideally be a multiple of 2 to the power of 4, which is 16. So the main point here is that you need ensure all the input be a multiple of 16, 96 does, 32 should also be fine. Thanks.