layerGraph in a 3D Convolution Network

2 visualizaciones (últimos 30 días)
Esra Kaya
Esra Kaya el 12 de En. de 2021
Comentada: Amir Ebrahimi el 22 de En. de 2021
Hi, I have a problem to extract the lgraph of my 3d CNN
when I write
net=googlenet;
lgraph = layerGraph(net);
there is no problem.
But when I write
net=myCNNnet;
lgraph = layerGraph(net);
There is an error
"Error using layerGraph (line 58)
The value of 'Layers' is invalid. Layers must be an array of layers."
The analysis of the network is problem free so what seems to be the problem, could you help me?
  1 comentario
Esra Kaya
Esra Kaya el 18 de En. de 2021
The 3d CNN I have been using is the code shared ResNET-18 3d function
I have extracted the final graph of the network like this, so there is not a problem while replacing the layers.
lgraph = layerGraph(net.Layers);
But when I have come to the part to train the network, there is still an error, like the previous one.
netTransfer = trainNetwork(dsTrain,fdsTrain.Labels,layers,options);
Error using trainNetwork (line 170)
Layers argument must be an array of layers or a layer graph.
Please help me how can I fix this, I can't understand where the problem is?

Iniciar sesión para comentar.

Respuesta aceptada

Amir Ebrahimi
Amir Ebrahimi el 19 de En. de 2021
Hi Esra,
The output argument of ResNET-18 3d function is a layergraph itself. so you do not need to use layerGraph function. Use the output argument of resnet18TL3Dfunction() directly for training.
  4 comentarios
Esra Kaya
Esra Kaya el 22 de En. de 2021
I will accept the answer but, still got the same problem, I can not think of anything else to solve this.
Amir Ebrahimi
Amir Ebrahimi el 22 de En. de 2021
Send me your email address via private message. Your profile is close to receive direct messages.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Parallel and Cloud en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by