Commit 4e2b4996 authored by Ross Girshick's avatar Ross Girshick
Browse files

add missing cache directory; bug fix in get_voc_opts.m so that it works with the VOC 2007 devkit

parent 2e99211e
function VOCopts = get_voc_opts(path) function VOCopts = get_voc_opts(path)
tmp = pwd; tmp = pwd;
voc_code_path = fullfile(path, 'VOCcode'); cd(path);
cd(voc_code_path);
try try
VOCinit; % brings VOCopts into scope addpath('VOCcode');
VOCinit;
catch catch
rmpath('VOCcode');
cd(tmp); cd(tmp);
error(sprintf('VOCcode directory not found at %s', voc_code_path)); error(sprintf('VOCcode directory not found under %s', path));
end end
rmpath('VOCcode');
cd(tmp); cd(tmp);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment