summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 01eb895)
raw | patch | inline | side by side (parent: 01eb895)
author | Manu Mathew <mathmanu@users.noreply.github.com> | |
Fri, 17 Mar 2017 05:19:18 +0000 (10:49 +0530) | ||
committer | Manu Mathew <mathmanu@users.noreply.github.com> | |
Fri, 17 Mar 2017 05:19:18 +0000 (10:49 +0530) |
detector/acfJacintoExample.m | patch | blob | history | |
detector/acfJacintoTrainTest.m | patch | blob | history |
index ff4672033bc55fe0427233bebb6612d051883a77..954c43467c883107e03428881c94df9c613795c0 100644 (file)
end
%% dataset
+dataName='Inria';
+exptName='AcfJacintoInria';
dataDir='D:\files\work\code\vision\ti\bitbucket\algoref\vision-dataset\annotatedVbb\data-INRIA';
-tempDir = [tempdir filesep 'data'];
-extractDb = 0;
+tempDir = [tempdir filesep 'data-acf' filesep dataName];
vidList={ ...
{'videos/set00/V000.seq', 'videos/set00/V001.seq'}, ...
{'videos/set01/V000.seq'} ...
{'annotations/set00/V000.vbb', 'annotations/set00/V001.vbb'}, ...
{'annotations/set01/V000.vbb'} ...
};
-
+extractDb = 0; %0: disable, 1: extract the dataset into temporary folder
+
%% extract training and testing images and ground truth
typeList={'train', 'test'};
extractDir={{},{}};
end
%% train and test
-acfJacintoTrainTest(extractDir);
+acfJacintoTrainTest(extractDir,exptName);
%% evaluation and comparison with other results
%expNum = 1; %19: Ht56 onwards, 1: (default) 50 onwards
index dfffa4a81e76d292ff4a84fcf650aee740e42ccc..2c82611d47b9e6b177e21583a0126705b987a0df 100644 (file)
% Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
% Licensed under the Simplified BSD License [see external/bsd.txt]
-function acfJacintoTrainTest(extractDir)
+function acfJacintoTrainTest(extractDir, exptName)
%Run training and test
if nargin < 1, extractDir={}; end
+if nargin < 2, exptName=''; end
%% set up opts for training detector (see acfTrain)
opts=acfTrain();
aRatio=opts.modelDs(2)/opts.modelDs(1);opts.pLoad={'squarify',{3,aRatio}};
%set eval range - optional
opts.pLoad = [opts.pLoad 'hRng',[opts.modelDs(1) inf], 'wRng',[opts.modelDs(2) inf] ];
-opts.name='models/AcfJacintoInria';
+opts.name=['models/' exptName];
opts.pPyramid.pChns.pFastMode.enabled=1; %default: 0
show=2;
if( 0 )
opts.filters=[5 4]; opts.pJitter=struct('flip',1,'nTrn',3,'mTrn',1);
opts.pBoost.pTree.maxDepth=3; opts.pBoost.discrete=0; opts.seed=2;
- opts.pPyramid.pChns.shrink=2; opts.name='models/LdcfJacintoInria';
+ opts.pPyramid.pChns.shrink=2; opts.name=['models/' exptName];
end
%% train detector (see acfTrain)