Shortcuts

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

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources