dividing groundtruth into training, testing and validation

8 vues (au cours des 30 derniers jours)
Raza Ali
Raza Ali le 5 Fév 2021
Commenté : yanqi liu le 5 Fév 2021
Hi, I have 800 images and labels in data set and I wanted to divide it into test, train and validation set.
I am using following code:
load gTruth % load gTruth file of training data
[imds,pxds] = pixelLabelTrainingData(gTruth);
imdsTrain=imds(81:720);
pxdsTrain=pxds(81:720);
imdsTest=imds(1:80);
pxdsTest=pxds(1:80);
imdsVal=imds(721:800);
pxdsVal=pxds(721:800);
its not working, any possible solution....?

Réponses (1)

yanqi liu
yanqi liu le 5 Fév 2021
[imds60, imds10, imds30] = splitEachLabel(imds,0.6,0.1)
  2 commentaires
Raza Ali
Raza Ali le 5 Fév 2021
While using this command, I am getting following error:
Error using matlab.io.datastore.ImageDatastore/splitEachLabel (line 211)
splitEachLabel requires non-empty Labels property.
yanqi liu
yanqi liu le 5 Fév 2021
can you upload the demo data, and we can make some test case.

Connectez-vous pour commenter.

Catégories

En savoir plus sur AI for Signals dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by