DataAugmentation.jl
Efficient, composable data augmentation for machine and deep learning, with support for n-dimensional images, categorical masks, keypoints, and bounding boxes.
An Item wraps data, and a Transform operates on the item. To resize an Image, create a CenterResizeCrop transform and call it on the item.
item = Image(image)
tfm = CenterResizeCrop((128, 128))
tfm(item)For the most part, the transformations themselves are not very complex. The challenge this library tackles is to reconcile an easy-to-use, composable interface with performant execution; the Design page explains how.
At the moment, the library focuses on spatial data (images, keypoints and masks), and also supports rows of tabular data. The extensible abstractions should fit other domains as well.
Installation
using Pkg
Pkg.add("DataAugmentation")Where to go next
- Quickstart: load an image, transform it and get the data back.
- Guide: using the library.
- Items: the containers for your data.
- Transformations: composing and randomizing transformations, and an overview of those that are available.
- Gallery: what the spatial transformations look like.
- Pipelines walks through classification, segmentation, landmarks, object detection, and 3D images.
- Preprocessing: getting data ready to be put into a model.
- Using with Flux: data loading, batching and training with augmented data.
- Buffering: reusing output buffers for speed.
- Concepts: why the library looks the way it does.
- Design: stochasticity, composition and buffering.
- Projective transformations: fusing and cropping spatial transformations.
- Extending: writing your own items, transformations and projective transformations.
- API reference with an alphabetical symbol index.