towhee.models.utils.video_transformsΒΆ

Functions

get_configs

transform_video

Classes

CenterCropVideo

Original code from torchvision: https://github.com/pytorch/vision/tree/main/torchvision/transforms

NormalizeVideo

Original code from torchvision: https://github.com/pytorch/vision/tree/main/torchvision/transforms

PackPathway

Transform for converting video frames as a list of tensors.

VideoTransforms

Transform video to video & audio tensors given an video path, corresponding to models by model name. The code is buiil on top of examples given by [Pytorchvideo](https://pytorchvideo.org/). The following model names are supported: - slow_r50 - slowfast_r50 - slowfast_r101 - x3d_xs - x3d_s - x3d_m.