Skip to content

Implement new preprocessing transform to resize image to a fixed size

This transformation will be named FixedSize. It takes two parameters, height and width. Its __call__ method calls torchvision.transforms.functional.resize with (self.height, self.width).