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)
tmp = pwd;
voc_code_path = fullfile(path, 'VOCcode');
cd(voc_code_path);
cd(path);
try
VOCinit; % brings VOCopts into scope
addpath('VOCcode');
VOCinit;
catch
rmpath('VOCcode');
cd(tmp);
error(sprintf('VOCcode directory not found at %s', voc_code_path));
error(sprintf('VOCcode directory not found under %s', path));
end
rmpath('VOCcode');
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