フィルターのクリア

Change number of output classes in Squeezenet?

5 ビュー (過去 30 日間)
Asim Shahzad
Asim Shahzad 2021 年 2 月 18 日
コメント済み: Manav Madan 2022 年 6 月 22 日
I want to retrain a slightly modified squeezenet on the CIFAR100 dataset. Here are the last few layers of Squeezenet:
Usually, a fully connected layer is replaced to change the number of output classes, or the pooling layer is changed. However, MATLAB's Deep Network Designer doesn't give any options to adjust output size of the globalAveragePooling2dLayer. And Squeezenet doesn't have any fully connected layers.
My question is, how do I change the network output class size from 1000 (imagenet) to 100 (cifar100)?
  1 件のコメント
Manav Madan
Manav Madan 2022 年 6 月 22 日
First store the values set for different features in last 4 layer the "convolution2dLayer" then delete and select a new "convolution2dLayer" where copy rest of the values for parameters and change "NumFilters" to the number of classes you have.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by