Error using trainNetwork VALUESET must be the same class as DATA.
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 16 Mag 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
il 16 Mag 2023
Jane
il 16 Mag 2023
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Image Data Workflows in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!