resnet50の出力層の除去
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
matlab初心者です。
●コード
lgraph = layerGraph(app.classifier.netTransfer.Layers);
newlgraph = removeLayers(lgraph,{lgraph.Layers(end).Name});
App Dsignerにおいて学習済みresnet50の出力層だけ取り除いてgradcamを使用したいのですが、上記のようにするとエラーが起こります。analyzeNetworkでnewlgraphの層グラフを見てみるとDAGが無くなって1本のネットワークになってしまっているようです。どうしたら良いでしょうか。ご教授いただきたいです。
0 commentaires
Réponse acceptée
Shunichi Kusano
le 9 Fév 2022
こんにちは。
作成されたlgraphは層の情報だけでそれらの接続の情報が抜けてしまっています。
こちらのサンプルをみていただくとわかるのですが、元のresnet50のconnection(層と層との接続情報)をいったん取り出しておいて、新しいネットワークではそれを使って全体のDagネットを復元する必要があります。
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur イメージを使用した深層学習 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!