Azzera filtri
Azzera filtri

Split image dataset into two separate folders

4 visualizzazioni (ultimi 30 giorni)
Andrea Daou
Andrea Daou il 3 Mar 2021
Modificato: Andrea Daou il 3 Mar 2021
Hello all,
I need to split an image dataset folder into two seperate folders.
In general i use :
imds = imageDatastore(dataset,...
'IncludeSubfolders',true,'LabelSource','foldernames');
[trainingSet, testSet] = splitEachLabel(imds, 0.7, 'randomize');
but how can I get the two seperate folders, because I need them for other processing things ?
More precisely, I want to divide each category folder to two separate folders one for training and one for test with a definite percentage rate (for example 30% of the category folder images are saved in test folder and the other 70% in training folder).
Thank you for your help!

Risposte (0)

Categorie

Scopri di più su Deep Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by