Clear Filters
Clear Filters

Images in neural network training

2 views (last 30 days)
Tousif Ahmed
Tousif Ahmed on 11 Apr 2017
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

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!