This repository shows the simple steps for transfer learning. In particular, CIFAR-10 dataset is chosen, and VGG19 model is used to train. The model is pre-trained and borrowed from https://github.com/taehoonlee/tensornets.git. The best accuracy I could get is about 91%.
While writing the notebook, I have noticed that I should be able to answer the following questions to perform transfer learning. The answers to them in implementation could be slightly different, but the concept is the same. In my choice of the pre-trained model, I will show my own answers.
- Choose the model (VGG16, VGG19, ResNet, DenseNet, ...)
- Search for the implementation for the model (Github)
- Know how to create the model
- Know how to load the pre-trained weights
- Know what the model outputs at the last layer
- Know the shape of the input data
- Know how to re-scale the original image(data) to fit into the model