

Instead, the ImageDataGenerator accepts the original data, randomly transforms it, and returns only the new, transformed data.īut remember how I said this was a trick question? It’s not taking the original data, randomly transforming it, and then returning both the original data and transformed data.

That’s right - the Keras ImageDataGenerator class is not an “additive” operation.

Here are the results: Figure 1: My twitter poll on the concept of Data Augmentation. The question was simple - data augmentation does which of the following? Knowing that I was going to write a tutorial on data augmentation, two weekends ago I decided to have some fun and purposely post a semi-trick question on my Twitter feed. I’ll also dispel common confusions surrounding what data augmentation is, why we use data augmentation, and what it does/does not do. In today’s tutorial, you will learn how to use Keras’ ImageDataGenerator class to perform data augmentation. Click here to download the source code to this post
