How get data for all layers (activations CNN)

7 ビュー (過去 30 日間)
Piotr Wozniak
Piotr Wozniak 2020 年 11 月 25 日
回答済み: Raunak Gupta 2020 年 12 月 5 日
Good afternoon,
I would like to ask if it is possible to download all image features for all layers. One layer must now be specified and the previous ones are not returned. It depends on a result similar to vl_simplenn where you can then download data from res1.
res1 = vl_simplenn(net, image) ;
feat1 = res1(13).x;
Matlab:
feat1 = activations(net,image,layout);
Thank you.

回答 (1 件)

Raunak Gupta
Raunak Gupta 2020 年 12 月 5 日
Hi,
The activations function is general purpose to get the features from any specific layer. Since returning output from all layers into a single variable can be huge sometimes on the memory, it is better to return particular layer output.
If you want to store all layers output, you may create a structure and in that can add the outputs of every layer by looping over all the layers.

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by