MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / _flip

Function _flip

timm/data/tf_preprocessing.py:134–137  ·  view source on GitHub ↗

Random horizontal image flip.

(image)

Source from the content-addressed store, hash-verified

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

Callers 1

preprocess_for_trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected