class documentation
class MaxResize(object): (source)
Constructor: MaxResize(max_output_size, interpolation)
Transform that resizes the PIL image or torch Tensor, if necessary, so that its maximum dimensions are at most the specified size.
Parameters | |
max | desired maximum output dimensions. Can either be a (max_height, max_width) tuple or a single max_dim |
interpolation | optional interpolation mode. Passed directly to
torchvision:torchvision.transforms.functional.resize |
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Instance Variable | interpolation |
Undocumented |
Instance Variable | max |
Undocumented |
Instance Variable | _kwargs |
Undocumented |