How can I insert my yolo dataset as a table
Show older comments
I got a dataset for human tracking, since the pretrained models I found on MATLAB website were for detecting vehicles, but I am struggling to find the way to input my data as ground truth for my model. The dataset I got is ready and cropped. I need to input it as a table. I am using this code and getting the error 'The RowNames property must contain one name for each row in the table.'. I want the table to have 2 columns, one with image path and the other with its data matrix.
myFolder = 'C:\Users\Zewail\Downloads\rois\jpg_Extracted_PIDS';
dinfo = dir(fullfile(myFolder, '**/*.jpg'));
n = numel(dinfo);
T = table(cell(1, n), 'VariableNames', {'image'}, 'RowNames', {dinfo.name});
for K = 1 : n
filename = dinfo(K).name;
filecontent = imread(filename);
T{filename,1} = filecontent;
end
Answers (1)
yanqi liu
on 13 Jan 2022
0 votes
yes,sir,please check the demo:
make the dataset as table,and modify model parameter to train
4 Comments
Mohamed Zewail
on 13 Jan 2022
yanqi liu
on 13 Jan 2022
yes,sir,may be use
Image Labeler to load images file and label them
or
Use vehicleDatasetGroundTruth.mat format, generate table to make label data
Mohamed Zewail
on 13 Jan 2022
yanqi liu
on 14 Jan 2022
yes,sir,if possible, can you upload your mat file,may check
make data transfer
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!