Chapter 5. Transfer Learning for Image Classification
In Chapter 3, Multi-LabelImage Classification using Convolutional Neural Networks, we saw how to develop an end-to-end project for handling multi-label image classification problems using CNN based on Java and the Deeplearning4J (DL4J) framework on real Yelp image datasets. For that purpose, we developed a CNN model from scratch.
Unfortunately, developing such a model from scratch is very time consuming and requires a significant amount of computational resources. Secondly, sometimes, we may not even have enough data to train such deep networks. For example, ImageNet is one of the largest image datasets at the moment and has millions of labeled images.
Therefore, we will develop an end-to-end project to solve dog versus cat image classification using a pretrained VGG-16 model, which is already trained with ImageNet. In the end, we will wrap up everything in a Java JFrame and JPanel application to make the overall pipeline understandable...