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
2020년 7월 14일
Could you please share the code to build the neural network on the last photo? Thank you.
Russdsp
2021년 6월 11일
Yes please share code. the green box in the middle doesnt seem like a layer- how is that there?
채택된 답변
추가 답변 (1개)
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
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?
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!