Error in validation datastore while I am training in parallel

1 view (last 30 days)
I am trying to train deep learning network on FaceForensics data set,
I use spliteachLabel to divide the data into 2 sets one for training and one for validation,
when I train in my cpu I didn't get any error ,
but when I trained in parallel I get the following error:
Error using trainNetwork (line 184)
Dot indexing is not supported for variables of this type.
Error in mylayers3D (line 137)
[lgraph,trainInfo] = trainNetwork(imds,lgraph,optionsadam);
Caused by:
Error using nnet.internal.cnn.ParallelTrainer/train (line 96)
Error detected on worker 1.
Error using nnet.internal.cnn.util/ValidationStatelessPredictStrategy/predictAndComputeLoss (line 136)
Dot indexing is not supported for variables of this type.
below the split code
imds = imageDatastore(datasetLocation,'IncludeSubfolders',true,'LabelSource','foldernames','FileExtensions',{'.jpg'});
[imdstraining, validdata]=splitEachLabel(imds, 0.6);
optionsadam = trainingOptions("adam",Plots="training-progress", verbose=1, ValidationFrequency=10,Epsilon=1e-8, MaxEpoch=200, MiniBatchSize=60, InitialLearnRate=0.0001, shuffle='every-epoch',ExecutionEnvironment="parallel",ValidationData=validdata);
any help to prevent this error ?

Answers (0)


Find more on Deep Learning in Parallel and in the Cloud in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!