loading data and creating a dot.mat file from scratch
Mostra commenti meno recenti
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')
Risposte (1)
Bhargavi Maganuru
il 24 Dic 2019
0 voti
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.
1 Commento
Matpar
il 14 Gen 2020
Categorie
Scopri di più su Octave in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!