How to introduce training and labeled image to train a neural network
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I'm trying to work with neural networks... Now I have the images that I want to train (.JPG) the network and the same images labeled (.m) but I'm not able to introduce this data to start the training or at least to run that function pximds = pixelLabelImageDatastore(imds,pxds);
I'm trying to use:
imds = imageDatastore(image) to open the training images
pxds = pixelLabelDatastore(label,classNames,labelIDs); to open the labeled images
but both function don't work and Matlab shows me this Cannot find files or folders matching
Do you have some suggestion to me to fix that ?
Thanks for your help!
0 件のコメント
回答 (1 件)
Sindhu Karri
2020 年 5 月 19 日
Hii,
You can verify the path where respective images, label files are stored and include those paths correctly in the code. The easiest way to access images, label files is to add them to current working folder.
Below is sample code which I have tried ,where images is the folder containing .jpg files placed in the current working folder(matlab path)
imds = imageDatastore('images')
classNames = ["sky" "grass" "blue"];
labelIDs = [1 2 3];
pxds = pixelLabelDatastore('images',classNames,labelIDs);
pximds = pixelLabelImageDatastore(imds,pxds);
Please refer to the below link for more details:
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!