Error using trainNetwork VALUESET must be the same class as DATA.
이전 댓글 표시
Hi. I'm trying to train a U-Net and the error that i'm getting is:
Error using trainNetwork
VALUESET must be the same class as DATA.
Caused by:
Error using matlab.io.datastore.ImageDatastore/read
Error using ReadFcn @customReadFcn for file:
C:\Users\New User\OneDrive - ump.edu.my\Desktop\NewLabelOriginal\c0002s0002t01_lesionsmooth_115.mat
Error using categorical
VALUESET must be the same class as DATA.
data = categorical(labels, [0, 1], {'Background', 'Tumor'});
I have attached the codes in this question.
Could someone lend a hand in troubleshooting this error?ubleshooting this error? Thank you for your time.
댓글 수: 3
Walter Roberson
2023년 5월 16일
We need c0002s0002t01_lesionsmooth_115.mat for testing -- as outside observers we cannot assume that c0002s0002t01_lesionsmooth_115.mat has the same class() of data as c0001s0004t01_lesionsmooth_1.mat does.
Jane
2023년 5월 16일
Jane
2023년 5월 16일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!