Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit 9f9a9b5

Browse files
committed
Augmentor: add RCropRatio
1 parent 68c29bf commit 9f9a9b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Augmentor/operations.jl

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ prob_ops = (
3434
10 => :(Scale(0.9:0.05:1.3)),
3535
10 => :(ElasticDistortion(15,15,0.1)),
3636
10 => :(ElasticDistortion(10,10,0.2,4,3,true)),
37+
10 => :(RCropRatio(1)),
3738
)
3839

3940
pattern = load(_mkpath("testpattern_small.png"))
@@ -150,6 +151,7 @@ order = (
150151
"ElasticDistortion",
151152
"Crop", "CropNative",
152153
"CropSize", "CropRatio",
154+
"RCropRatio",
153155
"Resize",
154156
)
155157
@assert length(unique(order)) == length(keys(tables))

Augmentor/operations/RCropRatio.gif

92.2 KB
Loading

0 commit comments

Comments
 (0)