combining two neural networks (net1 is trained & net2 is untrained) in one bigger network

18 ビュー (過去 30 日間)
I have two shallow neural network models net1, net2.
I have a trained net1. Then I need to connect a net2 to a net1. Hence I treat the combined (net2+net1) as one large net and then train the big net . However, during the second training phase, we only need to update the weights corresponding to net2 (and keep net1 weights fixed). Is it possible in MATLAB? any suggested links or articles to perform this part.
  2 件のコメント
Xin Yee Tai
Xin Yee Tai 2020 年 7 月 14 日
Could you please share the code to build the neural network on the last photo? Thank you.
Russdsp
Russdsp 2021 年 6 月 11 日
Yes please share code. the green box in the middle doesnt seem like a layer- how is that there?

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

採用された回答

Hiro Yoshino
Hiro Yoshino 2020 年 1 月 10 日
  2 件のコメント
Abdelwahab Afifi
Abdelwahab Afifi 2020 年 1 月 10 日
what about connecting two neural networks with each other?
Abdelwahab Afifi
Abdelwahab Afifi 2020 年 6 月 22 日
After training, how can I extract net2 from the big net ?

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

その他の回答 (1 件)

Greg Heath
Greg Heath 2020 年 1 月 12 日
Just
1. Save the outputs of net1 in a file
2. Use the file to train net2
Greg
  2 件のコメント
Beatriz Martins
Beatriz Martins 2020 年 1 月 12 日
編集済み: Beatriz Martins 2020 年 1 月 12 日
Greg Heath,
I am trying to save the output of a net1 and use it to train net2. However, during training of net1 the trainFasterRCNNObjectDetector function added new layers (initially I have 25 layers and the output of net1 has 35) and I get an invalid network. Do you know how can I solve this problem?
Abdelwahab Afifi
Abdelwahab Afifi 2020 年 6 月 20 日
編集済み: Abdelwahab Afifi 2020 年 6 月 22 日
Greg Heath,
more clarification please. I wanna train the bigger networok which combined of (untrained net2 + trained net1)

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

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by