-
Notifications
You must be signed in to change notification settings - Fork 72
/
setup.m
29 lines (24 loc) · 830 Bytes
/
setup.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
function setup()
% setup()
%
% Add Matconvnet, Matconvnet-FCN and Matconvnet-Calvin to Matlab path
% and initialize global variables used by the demos.
%
% Copyright by Holger Caesar, 2016
% Define paths
root = fileparts(mfilename('fullpath'));
matconvnetFolder = fullfile(root, 'matconvnet', 'matlab');
matconvnetFcnFolder = fullfile(root, 'matconvnet-fcn');
matconvnetCalvinFolder = fullfile(root, 'matconvnet-calvin');
% Add matconvnet
addpath(matconvnetFolder);
vl_setupnn();
% Add matconvnet-fcn
addpath(matconvnetFcnFolder);
% Add matconvnet-calvin
addpath(genpath(matconvnetCalvinFolder));
% Define global variables
global glBaseFolder glDatasetFolder glFeaturesFolder;
glBaseFolder = fullfile(root, 'data');
glDatasetFolder = fullfile(glBaseFolder, 'Datasets');
glFeaturesFolder = fullfile(glBaseFolder, 'Features');