how to connect new network to existing model
2 visualizaciones (últimos 30 días)
Shilpa Sonawane el 4 de Abr. de 2023
I have combined output of 2 networks. I need to connect combined output with 3rd network. I am unable to do it. I have to connect add_1 to deconv1 layer. please guide.
lgraph = layerGraph;
lgraph = addLayers(lgraph,visual_net_layes);
lgraph = addLayers(lgraph,audio_net_layers);
add = additionLayer(2,'Name','add_1')
lgraph = addLayers(lgraph,add);
lgraph = connectLayers(lgraph,'fc1','add_1/in1');
lgraph = connectLayers(lgraph,'fc2','add_1/in2');
newlayers = [
%lgraph = layerGraph(newlayers);
lgraph = addLayers(lgraph,newlayers);
Vinayak Choyyan el 10 de Abr. de 2023
Hi Shilpa Sonawane,
As per my understanding, you are facing an issue when trying to combine 3 deep neural networks.
From the code provided, I see that you are trying to combine the output of ‘add_1’ to the input of ‘deconv1’ layer. Please try out the following code.
For more information on ‘additionLayer’, please check out the following documentation https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.layer.additionlayer.html
I hope this resolves the issue you are facing.