tfm.vision.preprocess_ops_3d.random_flip_left_right
Stay organized with collections
Save and categorize content based on your preferences.
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."],[],[],null,["# tfm.vision.preprocess_ops_3d.random_flip_left_right\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/models/blob/v2.15.0/official/vision/ops/preprocess_ops_3d.py#L382-L404) |\n\nFlips all the frames with a probability of 50%. \n\n tfm.vision.preprocess_ops_3d.random_flip_left_right(\n frames: tf.Tensor, seed: Optional[int] = None\n ) -\u003e tf.Tensor\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------|--------------------------------------------------------------|\n| `frames` | A Tensor of shape \\[timesteps, input_h, input_w, channels\\]. |\n| `seed` | A seed to use for the random sampling. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A Tensor of shape \\[timesteps, output_h, output_w, channels\\] eventually flipped left right. ||\n\n\u003cbr /\u003e"]]