VideoBase#

class torchaug.transforms.VideoBase(video_format)[source]#

Abstract class to make a base class for all video transforms.

Parameters:

video_format (str) – Dimension order of the video. Can be TCHW or CTHW.

static check_format(format)[source]#

Check if the format is either TCHW or CTHW. Raises an error if not.

Parameters:

format (str) – Format to check.

Return type:

None

property time_before_channel: bool#

Boolean that checks if the video_format has time dimension before channel.

property video_format#

Dimension order of the video.

Can be TCHW or CTHW.