I am trying to construct a mutiple input layer deep-NN, under the help of example "Train Network on Image and Feature Data". The difference are that my input for NN are "image" and a "vector" which may affect the result of classification, rather "image" and " its angle" as example shows, and i have two output layers.
this is the dimension of a input sample
"Imageinput" [244 244 3]
"processparameter' [5 1]
i have already make the arraydatastore and custom loop setting, and when i use this setting for check runing, it works but "Loss value" unstable, and iteration cost so much time
mbq = minibatchqueue(dsTrain,...
'MiniBatchSize',miniBatchSize,...
'MiniBatchFcn', @preprocessData,...
'MiniBatchFormat',{'SSCB','C','',''});
so i want change the miniBatchSize to any other value, like 10, but it comes an error
mbq = minibatchqueue(dsTrain,...
'MiniBatchSize',miniBatchSize,...
'MiniBatchFcn', @preprocessData,...
'MiniBatchFormat',{'SSCB','C','',''});
-----------------------------------------------------------------
Error using minibatchqueue (line 319)
Unable to apply MiniBatchFormat value 'C' to output 2.
Error in Multi_Task_Learning007_1 (line 231)
mbq = minibatchqueue(dsTrain,...
Error using dlarray (line 174)
Not enough dimension labels. Setting the label of just one dimension is supported only for vector arguments.
i have try another 'MiniBatchFormat' for "processparameter'' like 'CB' or 'SCB', but still can't work.
Specially, when i set
'MiniBatchFormat',{'SSCB','SCB','',''}
which i think will be more reasonable for a 'vector' input which will be batched, but it comes another error: "Layer 'features': Invalid input data. Invalid number of spatial dimensions. Layer expects 0 but received 1."
by the way, this is my 'preprocessData' function
function [X1,X2,Y,angle] = preprocessData(X1Cell,X2Cell,YCell,angleCell)
angle = cat(2,angleCell{:});
i don't know why this error come and how can i do to run this NN with a bigger miniBatchSize?