-
Notifications
You must be signed in to change notification settings - Fork 28
/
run_speed.m
34 lines (29 loc) · 830 Bytes
/
run_speed.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
clear
close all;
clc
warning off all;
addpath('./utils');
addpath(genpath('./vlfeat-0.9.19'));
seqs=configSeqs;
trackers=configTrackers;
numSeq=length(seqs);
numTrk=length(trackers);
evalType='OPE'; %'OPE'
finalPath = ['./results/results_' evalType '_all/'];
for idxTrk=1:numTrk
fps=zeros(numSeq,1);
t = trackers{idxTrk};
for idxSeq=1:length(seqs)
s = seqs{idxSeq};
% validate the results
if exist([finalPath s.name '_' t.name '.mat'])
load([finalPath s.name '_' t.name '.mat']);
for i=1:length(results)
fps(idxSeq)=fps(idxSeq)+ results{1,i}.fps;
end
fps(idxSeq)=fps(idxSeq)/length(results);
end
end
avgfps=round(mean(fps), 1);
disp([trackers{idxTrk}.name ':' num2str(avgfps) ' fps']);
end