How to use the subfolder instead of the parent folder in imageDataStore ?

I am using ImageDataStore for classifications, However, the imds.Labels of classes is (the source folder), and I am looking to use the subfolder inside it as classes
New RETINA_OCT2020 (the source parent folder ) includes (4 subfolders named ' car, human, dog, tree'). How to change the imds.Lables to the subfolder names instead of the source folder

3 件のコメント

KAVITHA R
KAVITHA R 2020 年 12 月 1 日
use 'Includesubfolder' option
type help in command prompt
Mohamed Elbeialy
Mohamed Elbeialy 2020 年 12 月 1 日
Its already included. The point is to change imds.lables from the main source folder to the catagrory of 4 subfolders names
Mohamed Elbeialy
Mohamed Elbeialy 2020 年 12 月 1 日
This is the message that I RECIEVE
Invalid training data. The output size (4) of the last layer does not match the number of classes (1).

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB Compiler についてさらに検索

製品

リリース

R2019a

質問済み:

2020 年 12 月 1 日

コメント済み:

2020 年 12 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by