View source on GitHub |
Select a random policy from policies
and apply it to image
.
tfm.vision.augment.select_and_apply_random_policy(
policies: Any, image: tf.Tensor, bboxes: Optional[tf.Tensor] = None
) -> Tuple[tf.Tensor, Optional[tf.Tensor]]