How do you do multi-class classification with a CNN network?
Afficher commentaires plus anciens
Currently I have a CNN network with a the classification layer.
net = alexnet;
layersTransfer = net.Layers(1:end-3);
numClasses = 5;
layers = [
layersTransfer
fullyConnectedLayer(numClasses,'Name', 'fc','WeightLearnRateFactor',1,'BiasLearnRateFactor',1)
softmaxLayer('Name', 'softmax')
classificationLayer('Name', 'classOutput')];
There are 5 different classes and each image can have multiple classes. However I can not find a way to train a network where each image has more than one possible class. How can I change my network so I can train it with data where there are multiple labels?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Object Detection dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!