Extracting features from an intermediate layer in vgg16.

Hello,
I am trying to extract features from layer 32 of vgg16 model. It's the max-pooling layer just above the first fully-connected layer.
Here are the model's layers as defined in matlab: https://in.mathworks.com/help/deeplearning/ref/vgg16.html
Thank you for your answers.

回答 (1 件)

Saurabh Chavan
Saurabh Chavan 2021 年 4 月 16 日

0 投票

Found what I was seeking for.
Here's an example code:
net = vgg16;
I = imread('flower.jpg');
featureMap = activations(net, I, 'pool5');
disp(featureMap);

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2021 年 4 月 16 日

回答済み:

2021 年 4 月 16 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by