AUG is an open source augmentation library based on OpenCV. The repository contains a set of image transformations for data augmentation and artificial data synthesis.
- supports operations on masks and points,
- unified interface - most magnitude coefficients are in the range [0, 1],
- optimized operations,
- unique operations compared to imgaug/albumentations,
- Python 3, OpenCV 4.1.
pip install aug
pip install -U git+https://github.com/cta-ai/aug
import aug
class SimpleExample(aug.Pipeline):
def __init__(self):
super(SimpleExample, self).__init__()
self.seq = aug.Sequential(
aug.Rotation(p=.5, angle=90),
aug.GaussianBlur(p=1.),
)
def apply(self, sample):
return self.seq.apply(sample)
sample = SimpleExample().apply(aug.Sample(image, annotations, masks))
More: Getting started.
v0.1.0 - 16/07/2019
- Initial alpha release.
Project is maintained mainly by Tomasz Gilewicz (@tgilewicz).