What numbers should we put for the layers. This is for google net, and it keeps giving us an error.
조회 수: 3 (최근 30일)
이전 댓글 표시
Our project wants us to use google net to train. We have no idea what the meaning of this error is. What should we do to the layers in order to fix it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379769/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379774/image.png)
댓글 수: 1
Matt J
2023년 5월 10일
Because your code is posted as an image, we cannot copy/paste and experiment with it.
답변 (1개)
Himanshu
2023년 5월 24일
Hello,
As per my understanding, you are facing an error while running the provided network structure script. The "unconnected input" error occurred due to the connections between the layers.
You can ensure that the layers are connected properly by using the following sample code:
% Create a layer graph
net = googlenet;
layers = net.Layers;
lgraph = layerGraph(layers);
% Connect the layers in the modified graph
lgraph = connectLayers(lgraph, 'input', 'conv1-7x7_s2');
lgraph = connectLayers(lgraph, 'conv2-3x3_reduce', 'inception_3a/output');
You can refer to the below documentation to learn more about "connectLayers" function in MATLAB.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!