dgs.utils.image.load_video

dgs.utils.image.load_video(filepath: str, **kwargs) torchvision.tv_tensors.Video | torch.Tensor[source]

Load a video from a given filepath.

Returns:

A batch of torch uint8 / byte images with their original shape of [N x C x H x W]. With T being the number of frames in the video.