Error using trainNetwork VALUESET must be the same class as DATA.
Show older comments
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 Comments
Walter Roberson
on 16 May 2023
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
on 16 May 2023
Jane
on 16 May 2023
Accepted Answer
More Answers (0)
Categories
Find more on Image Data Workflows 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!