テストデータとトレーニングデータの指定

現在,深層学習を使用したセマンティック セグメンテーションを参考にセマンティックセグメンテーションを行っています.
上の例では,学習データとテストデータを無作為に分類していますが,自分で用意したデータセットで解析するにあたって,
テストデータとトレーニングデータのフォルダを指定したいと考えているのですがどのように書き換えればいいのでしょうか?

 Respuesta aceptada

Srivardhan Gadila
Srivardhan Gadila el 30 de Nov. de 2020

0 votos

Change the outputFolder variable to the location of your dataset:
outputFolder = 'path to your dataset';
Let's say that within that folder, the images and stored in folder called "images" and labels in folder called "labels"
imgDir = fullfile(outputFolder,'images');
imds = imageDatastore(imgDir);
labelDir = fullfile(outputFolder,'labels');
The classes may change in your case, so you have to make changes accordingly and use the pixelLabelDatastore to load the labels.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 23 de Nov. de 2020

Respondida:

el 30 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!