Error in minibatchqueue (line 290) numVariables = numel(getP​reviewFrom​Datastore(​originalDa​tastore));

조회 수: 13(최근 30일)
Hi,
I get this error :
------
Error in minibatchqueue (line 290)
numVariables = numel(getPreviewFromDatastore(originalDatastore));
Error in ourmodel (line 32)
mbqLDTrain = minibatchqueue(imdsLDTrain,MiniBatchSize=miniBatchSize, ...
------
Part of the code:
miniBatchSize = 1;
mbqLDTrain = minibatchqueue(imdsLDTrain,MiniBatchSize=miniBatchSize, ...
MiniBatchFormat="SSCB",DispatchInBackground=canUseGPU);
mbqHDTrain = minibatchqueue(imdsHDTrain,MiniBatchSize=miniBatchSize, ...
MiniBatchFormat="SSCB",DispatchInBackground=canUseGPU);
My matlab is R2021a version with Deep Learning Toolbox.
How do i fix this error ?
Thank You
  댓글 수: 9
Joss Knight
Joss Knight 2022년 4월 18일
Great! So there's your answer. When you modified this example you presumably forgot to copy over the accompanying file augmentDataForLD2HDCT.m.

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

채택된 답변

Joss Knight
Joss Knight 2022년 4월 18일
Make sure the accompanying file augmentDataForLD2HDCT.m that comes with this example is on the path when you run your code.
  댓글 수: 9

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

추가 답변(0개)

범주

Find more on Simulink 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!

Translated by