필터 지우기
필터 지우기

can any 1 guide me to clear this error

조회 수: 2 (최근 30일)
SARAH LONER
SARAH LONER 2019년 11월 29일
댓글: SARAH LONER 2019년 11월 29일
A1 = 'G:\sarAH\MATH';
dataSetDir = fullfile(A1,'foldername','imageset');
imds= imageDatastore('imageset', ...
'IncludeSubfolders',true, ...
'LabelSource','foldernames','FileExtensions',{'.dcm'});
labelDir = fullfile(dataSetDir,'trainingImages');
classNames = ["beign","malignant"];
labelIDs = [0 1];
pxds = pixelLabelDatastore(labelDir,classNames,labelIDs);
imageSize = [512 512 1];
numClasses = 2;
lgraph = createUnet(imageSize, numClasses);
ds = pixelLabelImageDatastore(imds,imds);
options = trainingOptions('sgdm', ...
'InitialLearnRate',1e-3, ...
'MaxEpochs',20, ...
'VerboseFrequency',10);
trainedNet = trainNetwork(ds,lgraph,options);
ERROR AT
Error using matlab.io.datastore.PixelLabelDatastore.create (line 895)
Cannot find files or folders matching: 'G:\SARAH\MATH\foldername\imageset\trainingImages'.
Error in pixelLabelDatastore (line 151)
ds = matlab.io.datastore.PixelLabelDatastore.create(location, classes, values, params);
Error in unet_ex1 (line 15)
pxds = pixelLabelDatastore(labelDir,classNames,labelIDs);
  댓글 수: 1
SARAH LONER
SARAH LONER 2019년 11월 29일
AND I CANT ABLE TO TRAIN IMAGE ALSO

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by