Make square centre-padding a model transform
Compare changes
- André Anjos authored
+ 3
− 5
@@ -10,7 +10,7 @@ import torchvision.transforms.functional
@@ -23,8 +23,7 @@ def square_center_pad(img: torch.Tensor) -> torch.Tensor:
@@ -129,8 +128,7 @@ def rgb_to_grayscale(img: torch.Tensor) -> torch.Tensor: