How to fix this error with Neural Network Classifier?

조회 수: 1 (최근 30일)
Sa rah
Sa rah 2015년 12월 28일
댓글: Sa rah 2015년 12월 30일
I used these code lines to built a Neural Network classifier in a face recognition project:
knowing that: the size of the images = 60*80, number of classes=15, 90 images for train set and 75 for test set are used.
net = patternnet(10);
[net,tr] = train(net,feaVectors,labels); % feaVectors=4800*90 and labels=15*90
testY = net(mat_test); % mat_test=4800*75
[c,cm] = confusion(labels_test,testY);
but I have this error:
Out of memory. Type HELP MEMORY for your options.
Error in
[net,tr] = train(net,feaVectors,labels);
Can someone help me to solve this please?

채택된 답변

Walter Roberson
Walter Roberson 2015년 12월 29일
Install more RAM. Use a 64 bit operating system and 64 bit MATLAB.

추가 답변 (1개)

Greg Heath
Greg Heath 2015년 12월 30일
You need to find an algorithm for face recognition feature extraction to drastically reduce the size of the 4800-dim inputs.
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Sa rah
Sa rah 2015년 12월 30일
ok, thank you for the answer, I'll try to find a feature extraction algorithm. Yet, when I reduce the dimensions of the feature vectors by changing the image size, I don't get a satisfying result, the true recognition rate is around 50% or less, and that's too low. I don't get why because I think the implementation is correct !! In fact, I use the same inputs with SVM and I get very satisfying results. can you help me in this ?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by