-
Notifications
You must be signed in to change notification settings - Fork 36
/
set_paths.m
68 lines (51 loc) · 1.76 KB
/
set_paths.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
65
66
67
% set paths for specific folders
%
% Created by Rui Zhao, on May 20, 2013.
% This code is release under BSD license,
% any problem please contact Rui Zhao [email protected]
%
% Please cite as
% Rui Zhao, Wanli Ouyang, and Xiaogang Wang. Unsupervised Salience Learning
% for Person Re-identification. In IEEE Conference of Computer Vision and
% Pattern Recognition (CVPR), 2013.
%
% addpath
addpath(genpath(strcat(project_dir, 'code/')));
% load test dataset
dataset_dir = strcat(project_dir, 'dataset/', dataset, '/');
% mat file directory
mat_dir = strcat(project_dir, 'mat/');
% cache directory
cache_dir = strcat(project_dir, 'cache/', dataset, '/');
% normalized data
dnorm_dir = strcat(cache_dir, 'datanorm/');
% dense feature directory
feat_dir = strcat(cache_dir, 'dfeat/');
% mutual distance map set
pwdist_dir = strcat(cache_dir, 'pwdist/');
% salience directory
salience_dir = strcat(cache_dir, 'salience/');
% result directory
result_dir = strcat(cache_dir, 'result/');
% reid directory
reid_dir = strcat(result_dir, 'reid/');
if ~exist(cache_dir, 'dir')
% create directories
mkdir(cache_dir);
mkdir(dnorm_dir);
mkdir(feat_dir);
mkdir(pwdist_dir);
mkdir(salience_dir);
mkdir(result_dir);
mkdir(reid_dir);
% copy .mat files to specific directory
switch lower(dataset)
case 'viper'
copyfile([mat_dir, 'partition_viper.mat'], cache_dir);
copyfile([mat_dir, 'posemask_viper.mat'], salience_dir);
copyfile([mat_dir, 'MSCRmatch_VIPeR_f1_Exp007.mat'], pwdist_dir);
copyfile([mat_dir, 'txpatchmatch_VIPeR_f1_Exp007.mat'], pwdist_dir);
copyfile([mat_dir, 'wHSVmatch_VIPeR_f1_Exp007.mat'], pwdist_dir);
case {'ethz1', 'ethz2', 'ethz3'}
end
end