summaryrefslogtreecommitdiff
path: root/training/conf/datamodule/transform
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-11-05 19:23:48 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-11-05 19:24:39 +0100
commitf53a7eb596ecfce0d36b5f5cb455dad6aff0360b (patch)
tree86801deea7086191988dedf25d3d573ccaf7ca80 /training/conf/datamodule/transform
parent40dd50690937cb3f8adb644363b4830ecd7fcfcc (diff)
Rename iam lines transforms
Rename iam lines transform
Diffstat (limited to 'training/conf/datamodule/transform')
-rw-r--r--training/conf/datamodule/transform/lines.yaml (renamed from training/conf/datamodule/transform/iam_lines.yaml)6
1 files changed, 6 insertions, 0 deletions
diff --git a/training/conf/datamodule/transform/iam_lines.yaml b/training/conf/datamodule/transform/lines.yaml
index 710f6e3..6949a15 100644
--- a/training/conf/datamodule/transform/iam_lines.yaml
+++ b/training/conf/datamodule/transform/lines.yaml
@@ -13,5 +13,11 @@ random_affine:
interpolation: BILINEAR
fill: 0
+random_perspective:
+ _target_: torchvision.transforms.RandomPerspective
+ distortion_scale: 0.2
+ p: 0.5
+ fill: 0
+
to_tensor:
_target_: torchvision.transforms.ToTensor