Skip to content

Instantly share code, notes, and snippets.

@kkoehncke kkoehncke/block2.py Secret
Last active Aug 12, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.