フィルターのクリア

Split image dataset into two separate folders

4 ビュー (過去 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 Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by