Error using trainNetwork (line 170)

조회 수: 10 (최근 30일)
Michael Keeling
Michael Keeling 2020년 6월 8일
답변: Oleg Kupervasser 2022년 8월 12일
Hello!
I am doing semantic segmentation of RGB images to 3 label classes using vgg-16 (for now). Matlab version 2020a.
When I pass the pixel Label Image Datastore to the trainNetwork function I get the following error:
[net, info] = trainNetwork(pximds,lgraph,options);
Error using trainNetwork (line 170)
Too many input arguments.
Caused by:
Error using gather
Too many input arguments.
Upon further inspection the error originates on line 194, iside the doTrainNetwork function:
trainedNet = assembler.assemble(analyzedLayers, executionSettings);
which itself fails inside the TrainingNetworkAssembler at line 33:
internalNetwork = this.Strategy.prepareNetworkForTraining(...
internalNetwork, executionSettings);
It seems the issue is with the network, not the inputs?
Any help would be welcome!
  댓글 수: 2
chf w
chf w 2021년 8월 28일
Has this problem been solved?
Walter Roberson
Walter Roberson 2021년 8월 28일
Which code did you have to run to create gtruth0 ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Oleg Kupervasser
Oleg Kupervasser 2022년 8월 12일
https://www.mathworks.com/matlabcentral/answers/416035-error-in-training-segnet-on-cpu

Community Treasure Hunt

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

Start Hunting!

Translated by