How to improve object detector?

3 views (last 30 days)
Hello guys, I trained my yolov4 detector using 350 images and 50 epochs… but average precision for each object was not as good as I want… what can I do to increase the average precision?

Accepted Answer

Image Analyst
Image Analyst on 7 May 2023
Train with more images and train for longer.
  4 Comments
Adrian Kleffler
Adrian Kleffler on 8 May 2023
i have code like this to remove rows...
% Nahratie tabulky LabelData
load('LabelData.mat');
% Zadanie ciest k obrazkom, ktoré chceš vymazať
pathsToDelete = {'E:\ADRIAN\BAKALARKA\DATASET\vsetko2\panasonic_fullhd_01-090-045-202111091200.jpg', 'E:\ADRIAN\BAKALARKA\DATASET\vsetko3\fullhd-090-000-201901101000-01.png','E:\ADRIAN\BAKALARKA\DATASET\vsetko2\panasonic_fullhd_01-090-000-202109091400.jpg','E:\ADRIAN\BAKALARKA\DATASET\vsetko2\panasonic_fullhd_01-090-000-202110090800.jpg','E:\ADRIAN\BAKALARKA\DATASET\vsetko2\panasonic_fullhd_01-090-000-202103091300.jpg','E:\ADRIAN\BAKALARKA\DATASET\vsetko3\fullhd-090-000-201901102200-01.png'};
% Vymazanie riadkov s danými cestami
for i = length(pathsToDelete):-1:1
idx = strcmp(LabelData.imageFilename, pathsToDelete{i});
LabelData(idx, :) = [];
end
% Uloženie upravenej tabuľky
save('LabelData.mat', 'LabelData');
but i have 888 images and this code removes 777 images instead of only 5 images which i want to remove
Image Analyst
Image Analyst on 8 May 2023
You keep forgetting to attach your .mat file. I can't try anything until you do. I'll check back later for it.

Sign in to comment.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!