google-research / big_transfer

Official repository for the "Big Transfer (BiT): General Visual Representation Learning" paper.
https://arxiv.org/abs/1912.11370
Apache License 2.0
1.5k stars 175 forks source link

"flip_left_right" in input_pipeline_tf2_or_jax.py #62

Open exiarepairii opened 2 years ago

exiarepairii commented 2 years ago

In Line 103 of input_pipeline_tf2_or_jax.py, why use tf.image.flip_left_right instead of tf.image.random_flip_left_right?

From tensorflow's doc, tf.image.flip_left_right will always flip the image, without any randomness. It makes more sense to use tf.image.random_flip_left_right for image augmentation.

Is this a mistake or is there another deeper meaning?