Dear sir,
I tried this code, but it resulted in error. As trial, I am using 3 class folders (1,2 and 3) with 10 gray images (total 30 images) of identical size 227x227x1 (of type uint8).
Also, We have created the network. The Gabor responses of size 227x227x4x30 have been computed on each 227x227 gray images (total 30 nos.) and on four orientations (gaborOrientation = [0 45 90 135];) and CNN layera number 25.
Prior to reshape statement, The size(gaborResponses) results in Gabor responses of size 227x227x4x30.
But when run
trainedNet = trainNetwork(gaborResponses, trainingImages.Labels, layers, options);
I still found this error
Invalid training data. For numeric array image input, predictors must be a 4-D array of images.
Pl. guide me to resolve the issue.