loading data and creating a dot.mat file from scratch
5 次查看(过去 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 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!