How to improve object detector?

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?

 采纳的回答

Image Analyst
Image Analyst 2023-5-7

0 个投票

Train with more images and train for longer.

4 个评论

And do you know how to remove multiple images from table in matlab when i know their path?
You could use contains or strcmpi to find rows that match the path you want to remove.
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
You keep forgetting to attach your .mat file. I can't try anything until you do. I'll check back later for it.

请先登录,再进行评论。

更多回答(0 个)

产品

版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by