diff --git a/bob/learn/tensorflow/dataset/__init__.py b/bob/learn/tensorflow/dataset/__init__.py index 7c0af9b4e73d12e1372baa2a8bc03b83ba6f608a..a742b1e092572a4ab5ce5158d957bb96109645d4 100644 --- a/bob/learn/tensorflow/dataset/__init__.py +++ b/bob/learn/tensorflow/dataset/__init__.py @@ -78,6 +78,8 @@ def append_image_augmentation(image, # Casting to float32 image = tf.cast(image, tf.float32) + # FORCING A SEED FOR THE RANDOM OPERATIONS + tf.set_random_seed(0) if output_shape is not None: assert len(output_shape) == 2