looooongChen/tfAugmentor

switch to `stateless_random_*` and `stateless_uniform`

Opened this issue · 1 comments

Warning: The old RNGs from TF 1.x such as tf.random.uniform and tf.random.normal are not yet deprecated but strongly discouraged.

source: https://www.tensorflow.org/guide/random_numbers

You should probably switch to the new api, however, this adds a bit of complexity because we have to handle seeds ourselves.

I saw tf.image.random_* image operations aren't used anywhere so I only replaced the tf.random.uniform calls.
check out PR #3