Effacer les filtres
Effacer les filtres

CNN : error in property 'Name' definition

2 vues (au cours des 30 derniers jours)
sally
sally le 20 Fév 2018
Hi, I'm trying to build a Convolutional NN using the following code in MATLAB 2017a: layers = [
imageInputLayer([64 64 1])
convolution2dLayer(5,16,'Padding',1)
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,32,'Padding',1)
reluLayer
maxPooling2dLayer(2,'Stride',2)
convolution2dLayer(3,64,'Padding',1)
reluLayer
fullyConnectedLayer(2)
softmaxLayer
classificationLayer];
but an error appears:
The definition of property 'Name' in class 'nnet.cnn.layer.MaxPooling2DLayer' differs from its
definition in the superclass 'nnet.cnn.layer.Layer'. This is caused by either conflicting access
permissions or differing values of the Constant attribute.
Error in maxPooling2dLayer (line 58)
inputArguments = nnet.cnn.layer.MaxPooling2DLayer.parseInputArguments(varargin{:});
and if i deleted the inputimagelayer, the error repeats with every layer.. what could be done wrong? I opened the internal built-in function once to check the code, but changed nothing

Réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by