Random horizontal image flip.
(image)
| 132 | |
| 133 | |
| 134 | def _flip(image): |
| 135 | """Random horizontal image flip.""" |
| 136 | image = tf.image.random_flip_left_right(image) |
| 137 | return image |
| 138 | |
| 139 | |
| 140 | def preprocess_for_train(image_bytes, use_bfloat16, image_size=IMAGE_SIZE, interpolation='bicubic'): |
no outgoing calls
no test coverage detected