-
Notifications
You must be signed in to change notification settings - Fork 540
/
startup.m
34 lines (26 loc) · 1.15 KB
/
startup.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
function startup()
% startup()
% --------------------------------------------------------
% R-FCN implementation
% Modified from MATLAB Faster R-CNN (https://github.com/shaoqingren/faster_rcnn)
% Copyright (c) 2016, Jifeng Dai
% Licensed under The MIT License [see LICENSE for details]
% --------------------------------------------------------
curdir = fileparts(mfilename('fullpath'));
addpath(genpath(fullfile(curdir, 'utils')));
addpath(genpath(fullfile(curdir, 'functions')));
addpath(genpath(fullfile(curdir, 'bin')));
addpath(genpath(fullfile(curdir, 'experiments')));
addpath(genpath(fullfile(curdir, 'imdb')));
mkdir_if_missing(fullfile(curdir, 'datasets'));
mkdir_if_missing(fullfile(curdir, 'external'));
caffe_path = fullfile(curdir, 'external', 'caffe', 'matlab');
if exist(caffe_path, 'dir') == 0
error('matcaffe is missing from external/caffe/matlab; See README.md');
end
addpath(genpath(caffe_path));
mkdir_if_missing(fullfile(curdir, 'imdb', 'cache'));
mkdir_if_missing(fullfile(curdir, 'output'));
mkdir_if_missing(fullfile(curdir, 'models'));
fprintf('rfcn startup done\n');
end