Add ability to duplicate augmentor_images #122
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of just being able to use all of the original images (n=0), this allows cloning the original images (by using a negative number) before applying the transformations.
This is my first time asking for a pull request on GitHub. This is a very small change. When I was using this package in my project I wanted a way to scale my original dataset, but also keep the data even over all the categories. In sample(), you specify the number of samples you would like to generate (the n parameter), but this is stochastic and does not keep the categories even. You can also use n=0 apply transformations on every image in the original dataset, but I wanted multiple transformations on the same image (say I was scaling my dataset 3x). I added a couple lines for the ability to specify negative numbers for n. The absolute value of n is the amount you wish to scale the dataset before applying the transformations.
Again this is my first pull request, please let me know what I did wrong.