4
$\begingroup$

I want to create a CNN model and I am using data augmentation. I want know the number of augmented images in Keras.

How to determine the number of the training images in Keras after data augmentation?

For example, if I have 2000 images for training and I am applying data augmentation, what is the number of the images after augmentation?

$\endgroup$

3 Answers 3

0
$\begingroup$

The images in the dataset are not used directly. Instead, only augmented images are provided to the model. So, your answer is 2000 images

$\endgroup$
0
$\begingroup$

There are no added images generated per se, the augmented images will just be stacked on top of the original images and your batch size will still stay the same.

$\endgroup$
-1
$\begingroup$

You can generate as many as augmented images in Keras using ImageDataGenerator. I struggled with the same problem and figured out that there is an infinite number of images you can generate. Second thing is you can limit the number of images to be generated.

$\endgroup$
1
  • $\begingroup$ I want to know the exact number of images after data augmentation. $\endgroup$
    – N.IT
    Commented Sep 12, 2018 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.