transforms.RandSpatialCrop
and derivatives not using random_size=False
by default is confusing and counter to expecations
#5651
MathijsdeBoer
started this conversation in
General
Replies: 1 comment
-
thanks, this makes sense, converting it to a feature request (#5652). cc @Nic-Ma |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all!
I've just spent way too much time on debugging a weird shape issue (as is common in deep learning) when trying to get a quick prototype going. Eventually I found out that the input patches would have inconsistent shapes, leading me to run through all of my transforms expecting a mistake, or some other unexpected behavior that I didn't account for.
Eventually, when running through I noticed that
transforms.RandSpatialCropd
(And the non-dictionary version) haverandom_size=True
by default. To my mind, this is counter to expected default behavior. If I call aRandSpatialCropd(keys=some_keys, roi_size=some_size)
, I am not expecting my outputs to have random shapes unless specifically enabled.Would a switch to
random_size=False
be a reasonable change to make in the next update?Beta Was this translation helpful? Give feedback.
All reactions