towhee.models.utils.video_transforms.CenterCropVideo¶
- class towhee.models.utils.video_transforms.CenterCropVideo(crop_size)[source]¶
Bases:
object
Original code from torchvision: https://github.com/pytorch/vision/tree/main/torchvision/transforms
- Parameters:
clip (torch.tensor) – Video clip to be cropped. Size is (C, T, H, W)
- Returns:
central cropping of video clip. Size is (C, T, crop_size, crop_size)
- Return type:
torch.tensor
Methods