Make square centre-padding a model transform
Compare changes
- André Anjos authored
+ 43
− 0
@@ -3,11 +3,44 @@
@@ -94,6 +127,16 @@ def rgb_to_grayscale(img: torch.Tensor) -> torch.Tensor:
This MR fixes issues #23 (closed) and #39 (closed), by: