MIC-DKFZ / batchgenerators

A framework for data augmentation for 2D and 3D image classification and segmentation
Apache License 2.0
1.1k stars 221 forks source link

General question on per sampel augmentation #87

Open MLRadfys opened 3 years ago

MLRadfys commented 3 years ago

Hi and thanks for sharing this great project!

Iam just wondering how batchgenerators applies the augmentation on a sample level?

Are multiple augmentations applied at once to a sample (i.ex. rotation + shift) or is it just a single transformation that is applied to a sample?

Thanks in advance,

Cheers,

M

FabianIsensee commented 3 years ago

Hi, each augmentation is applied one after the other. The only exception is SpatialTransform which applies shift, rotation, scaling and deformation at the same time for computational reasons Best, Fabian