Extracting features generated by Inception V3
The first layers of any neural network are basically responsible for identifying low-level features, such as edges, colors, and blobs, but the last layers are usually very specific to the task they are trained for.
Because pre-trained networks are usually trained on a very large dataset such as ImageNet, which contains over 10 million images, it makes those features very generic and possible to be reused for other models.
In the following activity, we will learn how to extract the features from the last activation and use them for solving the CIFAR-10 problem, where we previously achieved around 70% accuracy.
Preparing the network
We assume that you have successfully run the example from the Predicting an image class usingMobileNet v2 section. We will start by loading the network and verifying that the process works, as follows:
using Images, MXNet const MODEL_NAME = "weights/inception-v3/Inception-7" const MODEL_CLASS_NAMES = "weights/inception...