Replies: 1 comment
-
Hi @philnovv, you should move the
Yes,
MONAI/monai/transforms/croppad/dictionary.py Line 919 in e1a69b0 Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @philnovv, you should move the
Yes,
MONAI/monai/transforms/croppad/dictionary.py Line 919 in e1a69b0 Hope it helps, thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi all, here is my set of transforms I'm using:
Using this set of transforms, I sometimes obtain image samples with different dimensions, e.g.
[1,92,92,92] and [1,92,92,87].
My question is: how is this possible? My understanding is that if the image size is less than e.g. 92 in any dimension, then SpatialPadd will pad it to 92 where necessary. Since this happens before random crop, shouldn't the image always have dimensions greater than or equal to the crop dimensions?
A second issue: despite calling "allow_smaller=False" in the random cropping init, no error is raised my MONAI when the inconsistent samples are produced.
Any thoughts would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions