In this recipe, we will see how to use Deep Learning for extracting relevant features
Recycling pre-built Deep Learning models for extracting features
Getting ready
One very simple idea is to use VGG16, and DCNN in general, for feature extraction. This code implements the idea by extracting features from a specific layer.
How to do it...
We proceed with the recipe as follows:
- Import the pre-built models and additional modules needed for processing and showing images:
from keras.applications.vgg16 import VGG16
from keras.models import Model
from keras.preprocessing import...