Practical aspects to take care of during model implementation
So far, we have seen the various ways of building an image classification model. In this section, we will learn about some of the practical considerations that need to be taken care of when building models in real-world applications. The ones we will discuss in this section are as follows:
- Imbalanced data
- The size of an object within an image when performing classification
- The difference between training and validation images
- The number of convolutional and pooling layers in a network
- Image sizes to train on GPUs
- OpenCV utilities
Imbalanced data
Imagine a scenario where you are trying to predict an object that occurs very rarely within our dataset: let’s say in 1% of the total images. For example, this can be the task of predicting whether an X-ray image suggests a rare lung infection.
How do we measure the accuracy of the model that is trained to predict...