How it works...
Now, you might wonder why we want to extract the features from an intermediate layer in a CNN. The key intuition is that: as the network learns to classify images into categories, each layer learns to identify the features that are necessary to do the final classification.
Lower layers identify lower order features such as colors and edges, and higher layers compose these lower order features into higher order features such as shapes or objects. Hence the intermediate layer has the capability to extract important features from an image, and these features are more likely to help with different kinds of classification.
This has multiple advantages. First, we can rely on publicly available large-scale training and transfer this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access