Created
October 31, 2019 11:17
-
-
Save njanirudh/78f7bdc48031e4f2ef15f5af2207adcc to your computer and use it in GitHub Desktop.
Augments the image present in a földer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# References | |
# 1. https://github.com/mdbloice/Augmentor | |
import Augmentor | |
p = Augmentor.Pipeline("/home/jayasimha/NJ/Datasets/Nuts/nonsense") | |
p.skew_left_right(probability=0.5) | |
p.skew_top_bottom(probability=0.5) | |
p.random_brightness(probability=0.5,min_factor=0.9,max_factor=1.0) | |
p.random_contrast(probability=0.5,min_factor=0.9,max_factor=1.0) | |
p.random_color(probability=0.5,min_factor=0.8,max_factor=1.0) | |
p.rotate90(probability=0.5) | |
p.rotate270(probability=0.5) | |
p.flip_left_right(probability=0.8) | |
p.flip_top_bottom(probability=0.3) | |
p.zoom(probability=0.5, min_factor=1.1, max_factor=1.5) | |
p.sample(5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment