-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinit_env_server.m
37 lines (31 loc) · 1.09 KB
/
init_env_server.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
rng('shuffle');
if isempty(gcp('nocreate'))
parpool(setting.num_threads);
end
if exist(fullfile(pwd,'..','common_codes'),'dir')
addpath(fullfile(pwd,'..','common_codes'));
end
if exist(fullfile(pwd,'codes'),'dir')
addpath(fullfile(pwd,'codes'));
end
if exist(fullfile(pwd,'external_functions','F10-0.1','matlab'),'dir')
addpath(fullfile(pwd,'external_functions','F10-0.1','matlab'));
end
if exist(fullfile(pwd,'external_functions','F10-0.1','matlab','util'),'dir')
addpath(fullfile(pwd,'external_functions','F10-0.1','matlab','util'));
end
if exist(fullfile(pwd,'external_functions','F10-0.1','matlab','vl'),'dir')
addpath(fullfile(pwd,'external_functions','F10-0.1','matlab','vl'));
end
% absolute server paths
if exist(colmap_prexif,'dir')
addpath(colmap_prexif);
end
% processing dir
[filepath1,datset_name,ext] = fileparts(queue_dir);
[filepath_parent,name,ext] = fileparts(filepath1);
processing_dir = fullfile(filepath_parent, 'processing', datset_name);
mkdir(processing_dir);
% results dir
results_dir = fullfile(filepath_parent, 'results', datset_name);
mkdir(results_dir);