代码拉取完成,页面将自动刷新
% Compile libraries and download network
[home_dir, name, ext] = fileparts(mfilename('fullpath'));
warning('ON', 'ECO:install')
% mtimesx
if exist('external_libs/mtimesx', 'dir') == 7
cd external_libs/mtimesx
mtimesx_build;
cd(home_dir)
else
error('ECO:install', 'Mtimesx not found.')
end
% PDollar toolbox
if exist('external_libs/pdollar_toolbox/external', 'dir') == 7
cd external_libs/pdollar_toolbox/external
toolboxCompile;
cd(home_dir)
else
warning('ECO:install', 'PDollars toolbox not found. Clone this submodule if you want to use HOG features. Skipping for now.')
end
% matconvnet
if exist('external_libs/matconvnet/matlab', 'dir') == 7
cd external_libs/matconvnet/matlab
try
disp('Trying to compile MatConvNet with GPU support')
vl_compilenn('enableGpu', true)
catch err
warning('ECO:install', 'Could not compile MatConvNet with GPU support. Compiling for only CPU instead.\nVisit http://www.vlfeat.org/matconvnet/install/ for instructions of how to compile MatConvNet.\nNote: remember to move the mex-files after re-compiling.');
vl_compilenn;
end
status = movefile('mex/vl_*.mex*');
cd(home_dir)
% donwload network
cd feature_extraction
mkdir networks
cd networks
if ~(exist('imagenet-vgg-m-2048.mat', 'file') == 2)
disp('Downloading the network "imagenet-vgg-m-2048.mat" from "http://www.vlfeat.org/matconvnet/models/imagenet-vgg-m-2048.mat"...')
urlwrite('http://www.vlfeat.org/matconvnet/models/imagenet-vgg-m-2048.mat', 'imagenet-vgg-m-2048.mat')
disp('Done!')
end
cd(home_dir)
else
warning('ECO:install', 'Matconvnet not found. Clone this submodule if you want to use CNN features. Skipping for now.')
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。