This code snippet use imgaug(https://github.com/aleju/imgaug) library to augment the given input images and convert them in the same directory structure as input was.
If the given input images that needs needs to be augmentaed, are in following directory structure.
dir/images/dog/
/cat/
/fish/
/ball/
...
the output result will also be in the same directory structure as:
mw_output/images/dog/
/cat/
/fish/
/ball/
...
The code can be customized for specific needs of augmentation. Please feel free to makes changes and add more options.
Presently the code runs on CPU, this needs GPU acceleration.