Content
Pad image with constant pad_value to obtain given image size ratio.
pad_value
ratio
img_t (Tensor) – 2D pytorch tensor
ratio (float) – the desired ratio (width / height)
(width / height)
pad_value (float) – constant value to use for padding area
tensor representing padded 2D image (batch)
Tuple[Tensor, Tuple[int, int, int, int]]