Does how does RandSpatialCrop in monai transforms behave? Its cropping different 3D patches from image and segmentation... #4484
Unanswered
ummadiviany
asked this question in
Q&A
Replies: 1 comment
-
Hi @ummadiviany , Thanks for your interest here. Thanks. |
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
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 working on a 3D binary segmentation problem the training images and labels are of 320x320x40. I want to randomly crop the 100x100x20 3D patch and same respective patch from the label as well. I am using the following code. I have an issue with RandSpatialCrop. I want to know how to use array transforms and especially Rand array transforms. Can you please help me.
---------------------------------Output------------------------------------------------------
Length of train set: 45
Length of test set: 4
Image shape : torch.Size([1, 1, 256, 256, 16])

Label shape : torch.Size([1, 1, 256, 256, 16])
The image crop and label crops are from different, they are not associated. How to use RandSpatialCrop properly??
Beta Was this translation helpful? Give feedback.
All reactions