How to find two layers to replace in googlenet?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
I'm trying the deep learning using googlenet and I don't know how to solve the 'findLayersToReplace'.
I tried this code but it give 3 layers instead of 2 layers that need to find.
layers = net.Layers(end-2:end);
layers =
3x1 Layer array with layers:
1 'loss3-classifier' Fully Connected 1000 fully connected layer
2 'prob' Softmax softmax
3 'output' Classification Output crossentropyex with 'tench' and 999 other classes
I don't need to replace Softmax layer.
Please help me creating the function of findLayersToReplace.
Thank you very much
Hana Razak
댓글 수: 2
mohammed alagele
2023년 1월 1일
hello dear also me the replaceLayer is not work what i do pleas can you help me
답변 (6개)
Johannes Bergstrom
2018년 11월 26일
I presume you are looking at this example: https://www.mathworks.com/help/deeplearning/examples/train-deep-learning-network-to-classify-new-images.html
findLayersToReplace is a supporting function/helper function to the example. To access supporting functions of any MATLAB example, open the example by clicking the blue 'Try it in MATLAB' (or similar) button in the top-right of the examples page.
댓글 수: 2
FEDERICO FURLAN
2019년 9월 4일
Hi Johannes,
Why the softmax layer is not replaced in this example? In other descriptions and examples this layer is always replaced... What is better to do? Thanks
Chinmay Rane
2021년 5월 5일
Hi the softmax layer is just an activation layer. hence it is not needed to be replaced until you plan to use some other activation. The Fully connected and the classification layer needs your total number of classes, hence we need to replace fc layer and final classification layer(this is set to default as it checks for incoming nodes). Hope it helps
DEEPA
2023년 4월 16일
TASK
Replace the last fully connected layer of the network with the new layer you just created. The layer that you need to replace is named "loss3-classifier".
댓글 수: 0
Bhagyashri
2023년 5월 21일
Replace the last fully connected layer of the network with the new layer you just created. The layer that you need to replace is named "loss3-classifier".
댓글 수: 0
Vedantika
2023년 7월 14일
TASK
Replace the last fully connected layer of the network with the new layer you just created. The layer that you need to replace is named "loss3-classifier".
댓글 수: 0
venkata sai
2024년 7월 15일
Replace the last fully connected layer of the network with the new layer you just created. The layer that you need to replace is called "loss3-classifier".
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!