loading data and creating a dot.mat file from scratch
2 ビュー (過去 30 日間)
古いコメントを表示
Happy Holidays All me again at the blocks,
I am trying to load data which i've collected of various types of guns, I have some stored in one folder called Frcnn and then two subfolders name TrainingSet & the rest in ValidationSet of equal data files.
in order to load this data properley, I have to create a **dot.Mat** file with various tables of the properties of the collected data.
My Question!:
How do I create this dot.mat file and what type of details am I to put into the columns?
Is the details placed into these columns automatically or am I to type in the name of each file one by one?
How is this done?
I am not sure of this process and i have been googling for some time now to aliviate this challenge but it's evading me!
Can someone, a more experience professional assist please?
Thank you in advance for acknowledging these problems I seem to conjure up from mars!
My Code, I am not sure where to get the data for the following!!
Help Please!
%imsize = size(TrainingSet);
gunfolder = '/Users/mmgp/Documents/MATLAB/FastRCNN/FrcnnGun/TrainingSet';
fname = dir(fullfile(gunfolder, '*.jpg'))
total_images = numel(fname)
Trs = fname;
save Fastracnn Trs
load('Fastracnn.mat','Trs');
%% Accessing Content of Folder TrainingSet Using Datastore
imds = imageDatastore('Fastracnn.mat','IncludeSubFolders',0,'LabelSource','Foldernames')
ERROR********
Error using imageDatastore (line 125)
Input folders or files contain non-standard file extensions.
Use FileExtensions Name-Value pair to include the non-standard file extensions.
Error in newfrcnn (line 141)
imds = imageDatastore('Fastracnn.mat','IncludeSubFolders',0,'LabelSource','Foldernames')
0 件のコメント
回答 (1 件)
Bhargavi Maganuru
2019 年 12 月 24 日
Error is because, .mat file is given as input to the imageDatastore, but it accepts only location of the data. You can directly give the address of image folder.
参考
カテゴリ
Help Center および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!