MIC-DKFZ / BraTS2017

Apache License 2.0
75 stars 16 forks source link

The patch size in the create_data_gen_train function #23

Closed yianzhongguo closed 6 years ago

yianzhongguo commented 6 years ago

@FabianIsensee Hi, sir. I find you have set the patch_size=(160,192,160): "data_gen_train = BatchGenerator3D_random_sampling(patient_data_train, BATCH_SIZE, num_batches=None, seed=False, patch_size=(160, 192, 160), convert_labels=True)" in the create_data_gen_train in the train_network.py. Why not set the patch_size=(128,128,128) since the input shape is (128,128,128). Thank you!

FabianIsensee commented 6 years ago

I do this because rotations, scaling and elastic deformations are applied to the patches. By first sampling larger patches, then appyling the transformation and then cropping to 128x128x128 I prevent border artifacts to some extend. Best, Fabian

yianzhongguo commented 6 years ago

Well done,thank you very much!