Module: tfm.vision.preprocess_ops_3d
Stay organized with collections
Save and categorize content based on your preferences.
Utils for processing video dataset features.
Functions
crop_image(...)
: Crops the image sequence of images.
decode_image(...)
: Decodes PNG or JPEG raw bytes string into a RGB uint8 Tensor.
decode_jpeg(...)
: Decodes JPEG raw bytes string into a RGB uint8 Tensor.
normalize_image(...)
: Normalizes images.
random_crop_resize(...)
: First crops clip with jittering and then resizes to (output_h, output_w).
random_flip_left_right(...)
: Flips all the frames with a probability of 50%.
resize_smallest(...)
: Resizes frames so that min(height
, width
) is equal to min_resize
.
sample_linspace_sequence(...)
: Samples num_windows
segments from sequence with linearly spaced offsets.
sample_segment_sequence(...)
: Samples a single segment of size num_frames
from a given sequence.
sample_sequence(...)
: Samples a single segment of size num_steps
from a given sequence.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-02 UTC."],[],[]]