View source on GitHub |
Flips all the frames with a probability of 50%.
tfm.vision.preprocess_ops_3d.random_flip_left_right(
frames: tf.Tensor, seed: Optional[int] = None
) -> tf.Tensor
Args | |
---|---|
frames
|
A Tensor of shape [timesteps, input_h, input_w, channels]. |
seed
|
A seed to use for the random sampling. |
Returns | |
---|---|
A Tensor of shape [timesteps, output_h, output_w, channels] eventually flipped left right. |