Skip to content

Instantly share code, notes, and snippets.

@kkoehncke
Last active August 12, 2018 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkoehncke/1db9ee1c852cd1cb228600af5fe87875 to your computer and use it in GitHub Desktop.
Save kkoehncke/1db9ee1c852cd1cb228600af5fe87875 to your computer and use it in GitHub Desktop.
from imgaug import augmenters as iaa
seq = iaa.Sequential([
iaa.Fliplr(0.5),
iaa.Grayscale(1.0),
iaa.EdgeDetect(0.5),
iaa.Multiply((1.2, 1.5))
])
...
train_batch = seq.augment_images(train_data[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment