Images in neural network training

1 次查看(过去 30 天)
Tousif Ahmed
Tousif Ahmed 2017-4-11
I have 65 Images in a file, when i am trying to run it on a neural network with the help of 'nprtool', i am getting this error after running this code. Face is a name of the file where the images are stored.
myDir = 'face/'; ext_img= '*.jpg'; X = dir([myDir ext_img]); nfile = max(size(X)) ;
ext_img= '*.jpg';
T= zeros;
net = feedforwardnet(100);
net = configure(net,X,T);
y1 = net(X)
A = reshape(linspace(0,1,16),[4 4])'
[net,tr] = train(net,X,T,Xi,Ai,EW)
I am getting this error. please can anyone help me outwith the code. Error using network/configure (line 118) Input data is not a matrix or cell array. Thank You

回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by