Skip to content

Commit

Permalink
unify detection augmentations (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 authored Oct 20, 2023
1 parent 89745cf commit 4c47ac9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions references/detection/train_tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,13 @@ def main(args):
# Augmentations
T.RandomApply(T.ColorInversion(), 0.1),
T.RandomJpegQuality(60),
T.RandomApply(T.GaussianNoise(mean=0.1, std=0.1), 0.1),
T.RandomApply(T.RandomShadow(), 0.4),
T.RandomApply(T.GaussianBlur(kernel_shape=3, std=(0.1, 0.1)), 0.3),
T.RandomSaturation(0.3),
T.RandomContrast(0.3),
T.RandomBrightness(0.3),
T.RandomApply(T.ToGray(), 0.1),
]
),
sample_transforms=T.SampleCompose(
Expand Down

0 comments on commit 4c47ac9

Please sign in to comment.