Attend the Women in ML Symposium on December 7 Register now

tfm.vision.preprocess_ops.random_horizontal_flip_with_roi

Randomly flips input image and bounding boxes.

Extends preprocess_ops.random_horizontal_flip to also flip roi_boxes used by ViLD.

image tf.Tensor, the image to apply the random flip.
boxes tf.Tensor or None, boxes corresponding to the image.
masks tf.Tensor or None, masks corresponding to the image.
roi_boxes tf.Tensor or None, RoIs corresponding to the image.
seed Seed for Tensorflow's random number generator.

image tf.Tensor, flipped image.
boxes tf.Tensor or None, flipped boxes corresponding to the image.
masks tf.Tensor or None, flipped masks corresponding to the image.
roi_boxes tf.Tensor or None, flipped RoIs corresponding to the image.