Split image dataset into two separate folders

조회 수: 12 (최근 30일)
Andrea Daou
Andrea Daou 2021년 3월 3일
편집: Andrea Daou 2021년 3월 3일
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!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by