Rate this Page

Resize#

class torchcodec.transforms.Resize(size: Sequence[int])[source]#

Resize the decoded frame to a given size.

Complementary TorchVision transform: Resize. Interpolation is always bilinear. Anti-aliasing is always on.

Parameters:

size (Sequence[int]) – Desired output size. Must be a sequence of the form (height, width).

Examples using Resize:

Decoder Transforms: Applying transforms during decoding

Decoder Transforms: Applying transforms during decoding