Closed chengjianhong closed 5 years ago
Hi, isn't there the batch dimension missing on your shapes? Shouldn't it be (b,4,128,128,128)? Also I am not quite sure you are using this right. You are effectively showing the same example several times but with a spatial transformation applied to it. That may not be very effective. Please have a look at https://github.com/MIC-DKFZ/batchgenerators/blob/master/batchgenerators/examples/brats2017/brats2017_dataloader_3D.py
Best, Fabian
Yes, I change the shape into (b,4,128,128,128) by np.tile() before performing spatial transformation. Comparaed with no spatial transformation ,it is not very effective. But thanks for your provided the brats example, I will try again.
@FabianIsensee Hi, thanks for your excellent works. I try to use the data augmentation to train my brain tumor segmentation task. I have attempted many times to use
Spatial Augmentations
on my network(3D U-Net) during the training, but in terms of Dice, its effect is not obvious on testing data. The following code only works on the training dataset and the validation dataset does not augment it. The shapes of data and truth are (4,128,128,128) and (1,128,128,128). Can your give me some advices and how to improve it ?