Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 1.07 KB
function startup()
% startup()
% --------------------------------------------------------
% Faster R-CNN
% Copyright (c) 2015, Shaoqing Ren
% 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('fast_rcnn startup done\n');
end