forked from Jiaolong/dpm-octave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVOCinit.m
35 lines (23 loc) · 1.15 KB
/
VOCinit.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
35
clear VOCopts
% change this path to point to your copy of the PASCAL VOC data
VOCopts.datadir= './dataset/INRIA_PASCAL/VOCdevkit/';
% change this path to a writable directory for your results
VOCopts.resdir= './cache/results/';
% change this path to a writable local directory for the example code
VOCopts.localdir= './cache/local/';
% initialize the test set
%VOCopts.testset='val'; % use validation data for development test set
VOCopts.testset='test'; % use test set for final challenge
% initialize paths
VOCopts.imgsetpath=[VOCopts.datadir 'VOC2007/ImageSets/%s.txt'];
VOCopts.clsimgsetpath=[VOCopts.datadir 'VOC2007/ImageSets/%s_%s.txt'];
VOCopts.annopath=[VOCopts.datadir 'VOC2007/Annotations/%s.txt'];
VOCopts.imgpath=[VOCopts.datadir 'VOC2007/Images/%s.png'];
VOCopts.clsrespath=[VOCopts.resdir '%s_cls_' VOCopts.testset '_%s.txt'];
VOCopts.detrespath=[VOCopts.resdir '%s_det_' VOCopts.testset '_%s.txt'];
% initialize the VOC challenge options
VOCopts.classes={'inriaperson'};
VOCopts.nclasses=length(VOCopts.classes);
VOCopts.minoverlap = 0.5;
% initialize example options
VOCopts.exfdpath=[VOCopts.localdir '%s_fd.mat'];