-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathval_duke_og.m
63 lines (52 loc) · 1.48 KB
/
val_duke_og.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
clear
clc
%% Options
opts = get_opts();
opts.experiment_name = '1fps_og';
opts.feature_dir = 'det_features_ide_basis_train_1fps_trainval';
% basis setting for DeepCC
opts.tracklets.window_width = 40;
opts.trajectories.window_width = 150;
opts.identities.window_width = 6000;
% correlation threshold setting according to `view_distance_distribution(opts)`
opts.tracklets.threshold = 18.45;
opts.trajectories.threshold = 18.45;
opts.identities.threshold = 18.45;
opts.tracklets.diff_p = 11;
opts.trajectories.diff_p = 11;
opts.identities.diff_p = 11;
opts.tracklets.diff_n = 11;
opts.trajectories.diff_n = 11;
opts.identities.diff_n = 11;
% alpha
opts.tracklets.alpha = 0;
opts.trajectories.alpha = 1;
opts.identities.alpha = 0;
create_experiment_dir(opts);
%% Setup Gurobi
if ~exist('setup_done','var')
setup;
setup_done = true;
end
%% Run Tracker
% opts.visualize = true;
opts.sequence = 8;
% Tracklets
opts.tracklets.spatial_groups = 0;
opts.optimization = 'KL';
% Single-camera trajectories
%opts.trajectories.use_indiff = false;
opts.trajectories.appearance_groups = 0;
% Multi-camera identities
%opts.optimization = 'BIPCC';
opts.identities.optimal_filter = true;
opts.identities.consecutive_icam_matrix = ones(8);
opts.identities.reintro_time_matrix = ones(1,8)*inf;
opts.identities.appearance_groups = 0;
DukeSCTs = [];
DukeMCTs = [];
for i = 1:1
[DukeSCTs(i,:), DukeMCTs(i,:)] = test_tracker(opts,0,1,1);
end
DukeSCT = mean(DukeSCTs,1)
DukeMCT = mean(DukeMCTs,1)