1

I am implementing custom data augmentation layer in my model where I am trying to use the function tf.image.stateless_random_flip_left_right.

Tensorflow Documentation says this function can,

Randomly flip an image horizontally (left to right) deterministically.

Why do we need a deterministic flip? Also, for this function, seed is a mandatory argument.

In data augmentation, I understand that from epoch to epoch, a particular image is fed in different forms. Wouldn't this force images of the same kind to be supplied?

Rajesh Nakka
  • 123
  • 1
  • 7

1 Answers1

1

Intuitively stateless means results won't have any state. So it will just flip the images randomly and will give different results with respect to different seeds.

For image augmentation purpose, you can use random_flip_left_right api

Attached gist for reference.

Timbus Calin
  • 13,809
  • 5
  • 41
  • 59