Skip to content

tgilewicz/aug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AUG-alpha

[Warning, Unmaintained!] Alternatives: imgaug, albumentations, kornia.

PyPI Status PyPI Status License

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.

Major features:
  • 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.

Installation

Pip:
pip install aug
The latest version, directly from github:
pip install -U git+https://github.com/cta-ai/aug

Example operations

Jitter Radial gradient Channel Shuffle Cutout
drawing drawing drawing drawing
Blend with random images CLAHE Contrast Zoom
drawing drawing drawing drawing
Salt and pepper Dilation Erosion Texture modification
drawing drawing drawing drawing
Flashlight Flips Gamma Random shadow
drawing drawing drawing drawing
Gaussian noise Brightness Inversion Rotation90
drawing drawing drawing drawing
Gaussian blur Motion blur Variable blur Pixelize
drawing drawing drawing drawing
Median blur Linear gradient JPEG noise Random Curve
drawing drawing drawing drawing
Elastic transformation Optical transformation Perspective transformation Grid distortion
drawing drawing drawing drawing
Rotation Scratches Halo effect
drawing drawing drawing

Example usage:

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.

Releases

v0.1.0 - 16/07/2019

  • Initial alpha release.

Licence

Apache License 2.0

Contact

Project is maintained mainly by Tomasz Gilewicz (@tgilewicz).

About

Image augmentation and artificial data synthesis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages