sc2bench.transforms.codec

Functions

register_codec_transform_module(cls)

Registers a codec transform class.

Classes

BPGModule(encoder_path, decoder_path[, ...])

A BPG module to compress (decompress) images e.g., as part of transform pipeline.

PILImageModule([returns_file_size, open_kwargs])

A generalized PIL module to compress (decompress) images e.g., as part of transform pipeline.

PILTensorModule([returns_file_size, open_kwargs])

A generalized PIL module to compress (decompress) tensors e.g., as part of transform pipeline.

VTMModule(encoder_path, decoder_path, ...[, ...])

A VTM module to compress (decompress) images e.g., as part of transform pipeline.

WrappedRandomResizedCrop([interpolation])

RandomResizedCrop in torchvision wrapped to be defined by interpolation as a str object.

WrappedResize([interpolation])

Resize in torchvision wrapped to be defined by interpolation as a str object.