Machine Learning - Image Augumentation

Hey there, Its day 12 of Quarantine.

Hoping everyones doing good. We talk about validation in the last post. Lets see how image augumentation works in this one.
When training a CNN to recognize particular objects in images, you want your CNN to be able to detect these objects regardless of their size or position in the image. For example, suppose we want to train our CNN to recognize dogs in images.

In this case, we want our CNN to be able to recognize if a dog is in an image regardless of how big the dog is, or if the dog is in the middle of the picture or in the left-hand corner, or if the dog is at an angle, or if we can only see part of the dog.
Therefore, in the ideal case, you want your CNN to see all these examples during training. If you're lucky enough to have a big training set with many different examples, your CNN will perform very well and would be less likely to overfit.
However, it is not uncommon to find yourself working with a training set that doesn't have a lot of different examples, in which case, your CNN is likely to suffer from overfitting and won't generalize well to data it hasn't seen before. This problem can be avoided by using a technique called
image augmentation.

Image augmentation works by creating new training images by applying a number of random image transformations to the images in the original training set.

For example, we can take an image from our original training set and create a new one by applying a random rotation, or a horizontal flip, or a random zoom.

By adding this new transformed images to our training set, we are ensuring that our CNN sees a lot of different examples during training. Consequently, our CNN will generalize better to unseen data and avoid overfitting. In the next lesson, we will learn about
dropout, another technique that can be used to prevent overfitting.
More in Making Of Terminator
- Machine Learning - Introduction
- Machine Learning - Celsius to Fahrenheit
- Machine Learning - Celsius to Fahrenheit - Core
- Machine Learning - Celsius to Fahrenheit - Google Colab Code
- Machine Learning - Celsius V Fashion Mnist
- Machine Learning - Convolutional Neural Networks ( CNN )
- Machine Learning - Convolution with color images
- Machine Learning - Deep Neural Network
- Machine Learning - Dense Layer
- Machine Learning - Dropout
- Machine Learning - Fashion Mnist Dataset - Google Colab Code
- Machine Learning - Fashion MNIST dataset - Prologue
- Machine Learning - Going Furthur with CNN Part 1
- Machine Learning - Going Furthur with CNN Part 2
- Machine Learning - Max & Average Pooling
- Machine Learning - Max Pooling With Color Images
- Machine Learning - MobileNet
- Machine Learning - Training And Testing
- Machine Learning - Transfer Learning
- Machine Learning - Understanding Convolutional Neural Networks
- Machine Learning - Validation

Sandeep B
Frontend engineer writing about Angular, JavaScript, and the occasional deep dive into whatever's currently breaking my build.