forked from RSL-NEU/person-reid-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_experiment_benchmark.m
32 lines (28 loc) · 1.42 KB
/
run_experiment_benchmark.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
clc
clear
%% Main file to run the experiment
env_setup;
% parameters for data
params = { 'name','viper',... % dataset name [viper, airport, DukeMTMC, caviar]
'datafolder',datafolder,...% folder for datasets
'pair',[]}; % specific camera pairs
dopts = setParam('dataset',params);
% parameters for feature extraction
params = { 'featureType','whos',... % feature type [whos, gog, gbicov, ldfv, color_texture, hist_lbp, lomo]
'numRow',6,... % number of split rows
'numCol',1,... % number of split cols
'overlap',0,... % indicator for overlapping split (50%)
'doPCA',0,... % indicator for PCA dimension reduction
'pcadim',100}; % PCA dimensions
fopts = setParam('feature',params);
% parameters for metric learning
params = { 'method','xqda',... % metric learning method [fda, lfda, klfda, mfa, kmfa, xqda, pcca, rpcca, kpcca, NFST, kissme, prdc, svmml]
'kernels',[]}; % kernel types [linear, chi2, chi2-rbf, exp]
mopts = setParam('metric',params);
% parameters for ranking
params = { 'rankType','rnp',... % rank type for multi-shot [rnp, srid, ahisd]
'saveMetric',1,... % indicator for saving learned metric
'saveInterm',1}; % indicator for saving intermediate results
ropts = setParam('ranking',params);
% evaluate
run_one_experiment;