forked from filipradenovic/cnnimageretrieval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_dsm.m
27 lines (23 loc) · 860 Bytes
/
setup_dsm.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
function setup_dsm()
% SETUP_DSM Setup the toolbox.
%
% setup_dsm() Adds the toolbox to MATLAB path.
%
% Authors: O. Simeoni, Y. Avrithis, O. Chum. 2019.
% Inspired from: F. Radenovic, G. Tolias, O. Chum. 2017.
[root] = fileparts(mfilename('fullpath')) ;
% add paths from this package
addpath(fullfile(root, 'cnnblocks'));
addpath(fullfile(root, 'cnninit'));
addpath(fullfile(root, 'cnnvecs'));
addpath(fullfile(root, 'examples'));
addpath(fullfile(root, 'whiten'));
addpath(fullfile(root, 'utils'));
run('tools/VLFeat/vlfeat-0.9.21/toolbox/vl_setup.m');
addpath(fullfile(root, 'dsm'));
addpath(fullfile(root, 'dsm/features'));
addpath(fullfile(root, 'dsm/features/utils'));
addpath(fullfile(root, 'dsm/ransac'));
addpath(fullfile(root, 'dsm/ransac/utils'));
addpath(fullfile(root, 'dsm/network'));
addpath(fullfile(root, 'utils/diffusion'));