-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtest_aic_zju_ensemble.m
65 lines (56 loc) · 1.69 KB
/
test_aic_zju_ensemble.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
64
clear
clc
%% Options
opts = get_opts_aic();
opts.experiment_name = 'aic_zju_test';
% opts.detections = 'yolo3';
% basis setting for DeepCC
opts.tracklets.window_width = 10;
opts.trajectories.window_width = 30;
opts.identities.window_width = [500,4800];
% correlation threshold setting according to `view_distance_distribution(opts)`
opts.feature_dir = 'det_features_zju_lr001_ensemble_test_ssd';
opts.tracklets.threshold = 0.65;
opts.trajectories.threshold = 0.65;
opts.identities.threshold = 0.71;
opts.tracklets.diff_p = 0.26;
opts.trajectories.diff_p = 0.26;
opts.identities.diff_p = 0.26;
opts.tracklets.diff_n = 0.26;
opts.trajectories.diff_n = 0.26;
opts.identities.diff_n = 0.26;
%% lr001 ensemble
% 0.65/0.65/0.73
% s02: 83.9/80.0; s134:
% fix accute + < 80: 75->80
create_experiment_dir(opts);
%% Setup Gurobi
if ~exist('setup_done','var')
setup;
setup_done = true;
end
%% Run Tracker
% opts.visualize = true;
% 'train_134', 'test_6', 'test_2', 'test_5', 'test_26','test_25','train_34','train_1'
opts.sequence = 6;
%% Tracklets
% opts.tracklets.spatial_groups = 0;
opts.optimization = 'KL';
compute_L1_tracklets_aic(opts);
%% Single-camera trajectories
opts.trajectories.appearance_groups = 1;
compute_L2_trajectories_aic(opts);
opts.eval_dir = 'L2-trajectories';
% evaluate(opts);
%% remove waiting cars
removeOverlapping(opts);
opts.eval_dir = 'L2-removeOverlapping';
% evaluate(opts);
%% Multi-camera identities
opts.identities.consecutive_icam_matrix = ones(40);
opts.identities.reintro_time_matrix = ones(1,40)*inf;
opts.identities.appearance_groups = 1;
compute_L3_identities_aic(opts);
opts.eval_dir = 'L3-identities';
% evaluate(opts);
prepareMOTChallengeSubmission_aic(opts);