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?