RandCropByPosNegLabel - Proposed random crop ROI is larger than the image size #5273
paulojamorim
started this conversation in
General
Replies: 2 comments
-
Yes, I think you can set MONAI/monai/transforms/croppad/array.py Lines 1004 to 1006 in e4a0de9 SpatialPad accordingly to make the input large enough MONAI/monai/transforms/croppad/array.py Lines 217 to 223 in e4a0de9 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you @wyli ! |
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
-
Hi
I am using the RandCropByPosNegLabel, the patch extrapolate the size of the image in some point and the error below occurs.
Is there any parameter to complete that missing part (increase the patch size)? or is it necessary to implement in MONAI?
Any help/suggestion appreciated.
Beta Was this translation helpful? Give feedback.
All reactions