RandSpatialCropSamples seems to output a strange result #2052
Replies: 2 comments 3 replies
-
Hi @patriciacs1994 , May I know what Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @patriciacs1994, I think that by using The problem you're seeing here is sneaky. If you executed |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a 3D image and I want to select a number of random patches with a shape (96,96,96). So I decided to use RandSpatialCropSamples. Here you can see my piece of code:
My problem is in the inputs and labels parameters. both have a size of (2,1,96,96,96), but when I plot them, both inputs and labels are pieces of the original image and labels should be the correspondent piece of GT image but it is not. I realized that batch_data has an output size of (num_samples*2). Am I doing something wrong or is there an error in the function?
NOTE: train_image_list and val_img_list are lists of lists of strings. with size (2,56)
Thank you in advance for your help
Beta Was this translation helpful? Give feedback.
All reactions