Skip to content

Commit

Permalink
Revert "replace deprecated augmentation functions"
Browse files Browse the repository at this point in the history
This reverts commit d1d3935.
  • Loading branch information
Marius-Juston committed Jan 17, 2021
1 parent 44cafbb commit dbecfc0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions keras_segmentation/data_utils/augmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def sometimes(aug):
0, 2.0)), # emboss images
# search either for all edges or for directed edges,
# blend the result with the original image using a blobby mask
iaa.BlendAlphaSimplexNoise(iaa.OneOf([
iaa.SimplexNoiseAlpha(iaa.OneOf([
iaa.EdgeDetect(alpha=(0.5, 1.0)),
iaa.DirectedEdgeDetect(
alpha=(0.5, 1.0), direction=(0.0, 1.0)),
Expand Down Expand Up @@ -159,12 +159,12 @@ def sometimes(aug):
exponent=(-4, 0),
first=iaa.Multiply(
(0.5, 1.5), per_channel=True),
second=iaa.contrast.LinearContrast(
second=iaa.ContrastNormalization(
(0.5, 2.0))
)
]),
# improve or worsen the contrast
iaa.contrast.LinearContrast((0.5, 2.0), per_channel=0.5),
iaa.ContrastNormalization((0.5, 2.0), per_channel=0.5),
iaa.Grayscale(alpha=(0.0, 1.0)),
# move pixels locally around (with random strengths)
sometimes(iaa.ElasticTransformation(
Expand Down

0 comments on commit dbecfc0

Please sign in to comment.