How to find two layers to replace in googlenet?

8 visualizzazioni (ultimi 30 giorni)
hana razak
hana razak il 27 Set 2018
Risposto: venkata sai il 15 Lug 2024
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 Commenti
houwang
houwang il 26 Nov 2018
Hello, I have the same problem. Have you solved your problem?
mohammed alagele
mohammed alagele il 1 Gen 2023
hello dear also me the replaceLayer is not work what i do pleas can you help me

Accedi per commentare.

Risposte (6)

Johannes Bergstrom
Johannes Bergstrom il 26 Nov 2018
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 Commenti
FEDERICO FURLAN
FEDERICO FURLAN il 4 Set 2019
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
Chinmay Rane il 5 Mag 2021
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

Accedi per commentare.


houwang
houwang il 27 Nov 2018
Thank you very much !!! Ihave solved this problems by this function
  2 Commenti
marwa za
marwa za il 26 Gen 2020
Modificato: marwa za il 26 Gen 2020
hi, please how did you solve your problem ?
Tahmina Sumi
Tahmina Sumi il 30 Gen 2020
@houwang i'm facing the same problem...how did u solve it??

Accedi per commentare.


DEEPA
DEEPA il 16 Apr 2023
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".

Bhagyashri
Bhagyashri il 21 Mag 2023
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".

Vedantika
Vedantika il 14 Lug 2023
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".

venkata sai
venkata sai il 15 Lug 2024
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".

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by