Skip to content

This is the code for svae the Image generate by the ImageDataGenerator, the file will save follow by your origin file tree.

Notifications You must be signed in to change notification settings

reece762/save_augmentation_image_by_folder

Repository files navigation

save_augmentation_image_by_folder

This is the code for svae the Image generate by the ImageDataGenerator, the file will save follow by your origin file tree.

Why for doing this?

It is so slow when using ImageDataGenerator: 3 second for a epochs > 60 second for a epochs...
Also some image after augmentation it is being a no use data, so saving the image can let me traning faster and the quality of image will be better after human filtering.

Before using please install the following package:
scipy
tensorflow
keras
numpy
scipy
Pillow

Using the test_set for example:

image

It has two class: cats, dogs

image

After running the program:

image

We can have the new data

image

image

The output number of the image can be calculate by:

Number in origin file* rate* batch_size* range

image

About

This is the code for svae the Image generate by the ImageDataGenerator, the file will save follow by your origin file tree.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages