From 0a03b3f1356fb64c5515289a2440405f38daa9ab Mon Sep 17 00:00:00 2001 From: pdollar Date: Tue, 27 Jan 2015 15:19:46 -0800 Subject: [PATCH] acfTrain.m: minor fix for case when using cropped windows for training (thanks Jiangyu Liu) --- detector/acfTrain.m | 4 ++-- external/history.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/detector/acfTrain.m b/detector/acfTrain.m index e1bd14f9..12610b3c 100644 --- a/detector/acfTrain.m +++ b/detector/acfTrain.m @@ -109,7 +109,7 @@ % See also acfReadme, acfDetect, acfDemoInria, acfModify, acfTest, % chnsCompute, chnsPyramid, adaBoostTrain, bbGt, bbNms, jitterImage % -% Piotr's Computer Vision Matlab Toolbox Version 3.40 +% Piotr's Computer Vision Matlab Toolbox Version NEW % Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com] % Licensed under the Simplified BSD License [see external/bsd.txt] @@ -230,7 +230,7 @@ if( exist(crDir,'dir') && stage==0 ) % if window directory is specified simply load windows fs=bbGt('getFiles',{crDir}); nImg=length(fs); assert(nImg>0); - if(nImg>n), fs=fs(:,randSample(nImg,n)); end; n=nImg; + if(nImg>n), fs=fs(:,randSample(nImg,n)); else n=nImg; end for i=1:n, fs{i}=[{opts.imreadf},fs(i),opts.imreadp]; end Is=cell(1,n); parfor i=1:n, Is{i}=feval(fs{i}{:}); end else diff --git a/external/history.txt b/external/history.txt index a8da7670..7dd13aa0 100644 --- a/external/history.txt +++ b/external/history.txt @@ -1,6 +1,6 @@ Version NEW -acfSweeps.m: Added ACF parameter sweep code to toolbox - -minor: opticalFlow + -minor: opticalFlow, acfTrain Version 3.40 (01-Nov-2014) -Added LDCF detector described in NIPS14 paper