Data Augmentation
Data Augmentation
but with the data augmentation we can transform image into different different
images .
we can flip image , horizontal shifting , vertical shifting , zoom in , zoom out
etc.
suppose we are developing a cnn to recognize cat images . but we have only 1000 cat
images only . our cnn network can should recognize the cat from images that are
zoomed
, flipped , vertical etc. for that we use data augmentation. it apply multiple
transformations on images and help in training of our cnn module so that it
will become more robust . It will increase the accuracy of our model.
Some of the popular open-source python packages used for image augmentation
packages are Albumentations, Keras ImageDataGenerator, OpenCV, Skimage.
///////////////////////////////////////////////////////////////////////////////////
/////////////
Data augmentation in data analysis are techniques used to increase the amount of
data by adding slightly
modified copies of already existing data or newly created synthetic data from
existing data.
while you are working with deep learning data augmentation is must.
Your neural network is only as good as the data you feed it.
The first option is known as offline augmentation. This method is preferred for
relatively smaller datasets, as you would end
up increasing the size of the dataset by a factor equal to the number of
transformations you perform (For example, by flipping all my images,
I would increase the size of my dataset by a factor of 2).
The second option is known as online augmentation, or augmentation on the fly. This
method is preferred for larger datasets,
as you can’t afford the explosive increase in size. Instead, you would perform
transformations on the mini-batches that you would
feed to your model. Some machine learning frameworks have support for online
augmentation, which can be accelerated on the GPU.
///////////////////////////////////////////////////////////////////////////////////
///////////
Conditional GANs to the rescue!
Without going into gory detail, conditional GANs can transform an image from one
domain to an image to another domain.
If you think it sounds too vague, it’s not; that’s literally how powerful this
neural network is! Below is an example of
conditional GANs used to transform photographs of summer sceneries to winter
sceneries.
The only downside of this method is that, the output tends to looks more artistic
rather than realistic. However, there
are certain advancements such as Deep Photo Style Transfer, shown below, that have
impressive results.