tfm.vision.preprocess_ops_3d.resize_smallest
Resizes frames so that min(height
, width
) is equal to min_resize
.
tfm.vision.preprocess_ops_3d.resize_smallest(
frames: tf.Tensor, min_resize: int
) -> tf.Tensor
This function will not do anything if the min(height
, width
) is already
equal to min_resize
. This allows to save compute time.
Args |
frames
|
A Tensor of dimension [timesteps, input_h, input_w, channels].
|
min_resize
|
Minimum size of the final image dimensions.
|
Returns |
A Tensor of shape [timesteps, output_h, output_w, channels] of type
frames.dtype where min(output_h, output_w) = min_resize.
|
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."],[],[]]