That is per epoch. So if I have a epoch=1 and p=0.5, my model will see 50% of the images flipped and 50% non flipped. That would be considered transformations.
However, if I have more epochs I guess almost every image will be seen in their original and transformed form. So it would be an augmentation.
Can anyone confirm?