tfm.vision.preprocess_ops_3d.random_rotation
Stay organized with collections
Save and categorize content based on your preferences.
Randomly rotate all frames with 0, 90, 180, or 270 degrees.
tfm.vision.preprocess_ops_3d.random_rotation(
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
rotated at 0/90/180/270 degrees.
|
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 2026-11-06 UTC.
[null,null,["Last updated 2026-11-06 UTC."],[],[]]