All Projects → codebox → Image_augmentor

codebox / Image_augmentor

Data augmentation tool for images

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Image augmentor

webdataset
A high-performance Python-based I/O system for large (and small) deep learning problems, with strong support for PyTorch.
Stars: ✭ 816 (+150.31%)
Mutual labels:  data-augmentation
text2text
Text2Text: Cross-lingual natural language processing and generation toolkit
Stars: ✭ 188 (-42.33%)
Mutual labels:  data-augmentation
pytorch-ricap
PyTorch implementation of RICAP (Random Image Cropping And Patching)
Stars: ✭ 40 (-87.73%)
Mutual labels:  data-augmentation
Tensorflow-data-loader
Reading data into tensorflow using tf.data function
Stars: ✭ 15 (-95.4%)
Mutual labels:  data-augmentation
consistency-adversarial
Consistency Regularization for Adversarial Robustness (AAAI 2022)
Stars: ✭ 37 (-88.65%)
Mutual labels:  data-augmentation
DeepSentiPers
Repository for the experiments described in the paper named "DeepSentiPers: Novel Deep Learning Models Trained Over Proposed Augmented Persian Sentiment Corpus"
Stars: ✭ 17 (-94.79%)
Mutual labels:  data-augmentation
resnet-cifar10
ResNet for Cifar10
Stars: ✭ 21 (-93.56%)
Mutual labels:  data-augmentation
Dab
Data Augmentation by Backtranslation (DAB) ヽ( •_-)ᕗ
Stars: ✭ 294 (-9.82%)
Mutual labels:  data-augmentation
volumentations
Augmentation package for 3d data based on albumentaitons
Stars: ✭ 26 (-92.02%)
Mutual labels:  data-augmentation
EmotionalConversionStarGAN
This repository contains code to replicate results from the ICASSP 2020 paper "StarGAN for Emotional Speech Conversion: Validated by Data Augmentation of End-to-End Emotion Recognition".
Stars: ✭ 92 (-71.78%)
Mutual labels:  data-augmentation
allie
🤖 A machine learning framework for audio, text, image, video, or .CSV files (50+ featurizers and 15+ model trainers).
Stars: ✭ 93 (-71.47%)
Mutual labels:  data-augmentation
general backbone
No description or website provided.
Stars: ✭ 37 (-88.65%)
Mutual labels:  data-augmentation
polyagamma
An efficient and flexible sampler of the Pólya-Gamma distribution with a NumPy/SciPy compatible interface.
Stars: ✭ 15 (-95.4%)
Mutual labels:  data-augmentation
mixup
speechpro.com/
Stars: ✭ 23 (-92.94%)
Mutual labels:  data-augmentation
Torchsat
🔥TorchSat 🌏 is an open-source deep learning framework for satellite imagery analysis based on PyTorch.
Stars: ✭ 261 (-19.94%)
Mutual labels:  data-augmentation
mnist-challenge
My solution to TUM's Machine Learning MNIST challenge 2016-2017 [winner]
Stars: ✭ 68 (-79.14%)
Mutual labels:  data-augmentation
all-classifiers-2019
A collection of computer vision projects for Acute Lymphoblastic Leukemia classification/early detection.
Stars: ✭ 24 (-92.64%)
Mutual labels:  data-augmentation
Dali
A GPU-accelerated library containing highly optimized building blocks and an execution engine for data processing to accelerate deep learning training and inference applications.
Stars: ✭ 3,624 (+1011.66%)
Mutual labels:  data-augmentation
Drq
DrQ: Data regularized Q
Stars: ✭ 268 (-17.79%)
Mutual labels:  data-augmentation
thelper
Training framework & tools for PyTorch-based machine learning projects.
Stars: ✭ 14 (-95.71%)
Mutual labels:  data-augmentation

Image Augmentor

This is a simple data augmentation tool for image files, intended for use with machine learning data sets. The tool scans a directory containing image files, and generates new images by performing a specified set of augmentation operations on each file that it finds. This process multiplies the number of training examples that can be used when developing a neural network, and should significantly improve the resulting network's performance, particularly when the number of training examples is relatively small.

Run the utility from the command-line as follows:

python main.py <image dir> <transform1> <transform2> ...

The <image dir> argument should be the path to a directory containing the image files to be augmented. The utility will search the directory recursively for files with any of the following extensions: jpg, jpeg, bmp, png.

The transform arguments determine what types of augmentation operations will be performed, using the codes listed in the table below:

Code Description Example Values
fliph Horizontal Flip fliph
flipv Vertical Flip flipv
noise Adds random noise to the image noise_0.01,noise_0.5
rot Rotates the image by the specified amount rot_90,rot_-45
trans Shifts the pixels of the image by the specified amounts in the x and y directions trans_20_10,trans_-10_0
zoom Zooms into the specified region of the image, performing stretching/shrinking as necessary zoom_0_0_20_20,zoom_-10_-20_10_10
blur Blurs the image by the specified amount blur_1.5

Each transform argument results in one additional output image being generated for each input image. An argument may consist of one or more augmentation operations. Multiple operations within a single argument must be separated by commas, and the order in which the operations are performed will match the order in which they are specified within the argument.

Examples

Produce 2 output images for each input image, one of which is flipped horizontally, and one of which is flipped vertically:

python main.py ./my_images fliph flipv

Produce 1 output image for each input image, by first rotating the image by 90° and then flipping it horizontally:

python main.py ./my_images rot_90,fliph

Operations

Horizontal Flip

Mirrors the image around a vertical line running through its center

python main.py ./my_images fliph

Original Image       Flipped Image

Vertical Flip

Mirrors the image around a horizontal line running through its center

python main.py ./my_images flipv

Original Image       Flipped Image

Noise

Adds random noise to the image. The amount of noise to be added is specified by a floating-point numeric value that is included in the transform argument, the numeric value must be greater than 0.

python main.py ./my_images noise_0.01 noise_0.02 noise_0.05

Original Image       Noisy Image       Noisy Image       Noisy Image

Rotate

Rotates the image. The angle of rotation is specified by an integer value that is included in the transform argument

python main.py ./my_images rot_90 rot_180 rot_-90

Original Image       Rotated Image       Rotated Image       Rotated Image

Translate

Performs a translation on the image. The size of the translation in the x and y directions are specified by integer values that are included in the transform argument

python main.py ./my_images trans_20_20 trans_0_100

Original Image       Translated Image       Translated Image

Zoom/Stretch

Zooms in (or out) to a particular area of the image. The top-left and bottom-right coordinates of the target region are specified by integer values included in the transform argument. By specifying a target region with an aspect ratio that differs from that of the source image, stretching transformations can be performed.

python main.py ./my_images zoom_150_0_300_150 zoom_0_50_300_150 zoom_200_0_300_300

Original Image       Zoomed Image       Stretched Image       Stretched Image

Blur

Blurs the image. The amount of blurring is specified by a floating-point value included in the transform argument.

python main.py ./my_images blur_1.0 blur_2.0 blur_4.0

Original Image       Blurred Image       Blurred Image       Blurred Image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].