tfm.vision.preprocess_ops_3d.random_flip_left_right
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-02-02 UTC.
[null,null,["Last updated 2024-02-02 UTC."],[],[]]