Skip to content

Commit

Permalink
*VERSION 3.40 OF TOOLBOX*
Browse files Browse the repository at this point in the history
  • Loading branch information
pdollar committed Nov 2, 2014
1 parent fe01f9e commit 07cff1b
Show file tree
Hide file tree
Showing 16 changed files with 194 additions and 57 deletions.
4 changes: 2 additions & 2 deletions doc/classify/adaBoostApply.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="
model - learned boosted tree classifier
maxDepth - [] maximum depth of tree
minWeight - [] minimum sample weigth to allow split
nThreads - [inf] max number of computational threads to use
nThreads - [16] max number of computational threads to use

OUTPUTS
hs - [Nx1] predicted output log ratios
Expand All @@ -42,7 +42,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="

See also <a href="adaBoostTrain.html" class="code" title="function model = adaBoostTrain( X0, X1, varargin )">adaBoostTrain</a>

Piotr's Computer Vision Matlab Toolbox Version 3.21
Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
4 changes: 2 additions & 2 deletions doc/classify/binaryTreeApply.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="
tree - learned tree classification model
maxDepth - [] maximum depth of tree
minWeight - [] minimum sample weigth to allow split
nThreads - [inf] max number of computational threads to use
nThreads - [16] max number of computational threads to use

OUTPUTS
hs - [Nx1] predicted output log ratios
Expand All @@ -42,7 +42,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="

See also <a href="binaryTreeTrain.html" class="code" title="function [tree,data,err] = binaryTreeTrain( data, varargin )">binaryTreeTrain</a>

Piotr's Computer Vision Matlab Toolbox Version 3.21
Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
4 changes: 2 additions & 2 deletions doc/classify/binaryTreeTrain.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="
.maxDepth - [1] maximum depth of tree
.minWeight - [.01] minimum sample weigth to allow split
.fracFtrs - [1] fraction of features to sample for each node split
.nThreads - [inf] max number of computational threads to use
.nThreads - [16] max number of computational threads to use

OUTPUTS
tree - learned decision tree model struct w the following fields
Expand All @@ -80,7 +80,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="

See also <a href="binaryTreeApply.html" class="code" title="function hs = binaryTreeApply( X, tree, maxDepth, minWeight, nThreads )">binaryTreeApply</a>, <a href="adaBoostTrain.html" class="code" title="function model = adaBoostTrain( X0, X1, varargin )">adaBoostTrain</a>, <a href="forestTrain.html" class="code" title="function forest = forestTrain( data, hs, varargin )">forestTrain</a>

Piotr's Computer Vision Matlab Toolbox Version 3.21
Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
14 changes: 2 additions & 12 deletions doc/detector/Contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,14 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="
<div class="fragment"><pre class="comment"> DETECTOR
See also

Fast detector code is based on the papers:
[1] P. Dollár, Z. Tu, P. Perona and S. Belongie
&quot;Integral Channel Features&quot;, BMVC 2009.
[2] P. Dollár, S. Belongie and P. Perona
&quot;The Fastest Pedestrian Detector in the West,&quot; BMVC 2010.
[3] P. Dollár, R. Appel and W. Kienzle
&quot;Crosstalk Cascades for Frame-Rate Pedestrian Detection,&quot; ECCV 2012.
[4] P. Dollár, R. Appel, S. Belongie and P. Perona
&quot;Fast Feature Pyramids for Object Detection&quot;, PAMI 2014.
Please cite a subset of the above papers if you end up using the code.
The PAMI 2014 paper has the most thorough and up to date descriptions.
Code written and maintained by Piotr Dollar and Ron Appel.
Please see <a href="acfReadme.html" class="code" title="">acfReadme</a> for an overview of the detection code.

Aggregate channel features object detector:
<a href="acfDemoCal.html" class="code" title="">acfDemoCal</a> - Demo for aggregate channel features object detector on Caltech dataset.
<a href="acfDemoInria.html" class="code" title="">acfDemoInria</a> - Demo for aggregate channel features object detector on Inria dataset.
<a href="acfDetect.html" class="code" title="function bbs = acfDetect( I, detector, fileName )">acfDetect</a> - Run aggregate channel features object detector on given image(s).
<a href="acfModify.html" class="code" title="function detector = acfModify( detector, varargin )">acfModify</a> - Modify aggregate channel features object detector.
<a href="acfReadme.html" class="code" title="">acfReadme</a> - Aggregate Channel Features Detector Overview.
<a href="acfTest.html" class="code" title="function [miss,roc,gt,dt] = acfTest( varargin )">acfTest</a> - Test aggregate channel features object detector given ground truth.
<a href="acfTrain.html" class="code" title="function detector = acfTrain( varargin )">acfTrain</a> - Train aggregate channel features object detector.

Expand Down
16 changes: 3 additions & 13 deletions doc/detector/acfDemoCal.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,9 @@ <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src
<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Demo for aggregate channel features object detector on Caltech dataset.

(1) Download data and helper routines from Caltech Peds Website
www.vision.caltech.edu/Image_Datasets/CaltechPedestrians/
(1a) Download Caltech files: set*.tar and annotations.zip
(1b) Copy above files to dataDir/data-USA/ and untar/unzip contents
(1c) Download evaluation code (routines necessary for extracting images)
(2) Set dataDir/ variable below to point to location of Caltech data.
(3) Launch &quot;matlabpool open&quot; for faster training if available.
(4) Run demo script and enjoy your newly minted fast ped detector!

Note: pre-trained model files are provided (delete to re-train).
Re-training may give slightly variable results on different machines.

Piotr's Computer Vision Matlab Toolbox Version 3.23
See also <a href="acfReadme.html" class="code" title="">acfReadme</a>.m

Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
16 changes: 3 additions & 13 deletions doc/detector/acfDemoInria.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,9 @@ <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src
<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Demo for aggregate channel features object detector on Inria dataset.

(1) Download data and helper routines from Caltech Peds Website
www.vision.caltech.edu/Image_Datasets/CaltechPedestrians/
(1a) Download INRIA files: set00.tar, set01.tar, and annotations.zip
(1b) Copy above three files to dataDir/ and untar/unzip contents
(1c) Download evaluation code (routines necessary for extracting images)
(2) Set dataDir/ variable below to point to location of INRIA data.
(3) Launch &quot;matlabpool open&quot; for faster training if available.
(4) Run demo script and enjoy your newly minted fast ped detector!

Note: pre-trained model files are provided (delete to re-train).
Re-training may give slightly variable results on different machines.

Piotr's Computer Vision Matlab Toolbox Version 3.22
See also <a href="acfReadme.html" class="code" title="">acfReadme</a>.m

Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
2 changes: 1 addition & 1 deletion doc/detector/acfDetect.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="

See also <a href="acfTrain.html" class="code" title="function detector = acfTrain( varargin )">acfTrain</a>, <a href="acfModify.html" class="code" title="function detector = acfModify( detector, varargin )">acfModify</a>, bbGt&gt;loadAll, <a href="bbNms.html" class="code" title="function bbs = bbNms( bbs, varargin )">bbNms</a>

Piotr's Computer Vision Matlab Toolbox Version 3.20
Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
154 changes: 154 additions & 0 deletions doc/detector/acfReadme.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Description of acfReadme</title>
<meta name="keywords" content="acfReadme">
<meta name="description" content="Aggregate Channel Features Detector Overview.">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
<meta name="robots" content="index, follow">
<link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<!-- menu.html detector -->
<h1>acfReadme
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Aggregate Channel Features Detector Overview.</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>This is a script file. </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Aggregate Channel Features Detector Overview.

Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]

%%%%%%%%%%%%%%%%%%%%%%%%%%%% 1. Introduction. %%%%%%%%%%%%%%%%%%%%%%%%%%%

The detector portion of this toolbox implements the Aggregate Channel
Features (ACF) object detection code. The ACF detector is a fast and
effective sliding window detector (30 fps on a single core). It is an
evolution of the Viola &amp; Jones (VJ) detector but with an ~1000 fold
decrease in false positives (at the same detection rate). ACF is best
suited for quasi-rigid object detection (e.g. faces, pedestrians, cars).

The detection code was written by Piotr Dollár with contributions by Ron
Appel and Woonhyun Nam (with bug reports/suggestions from many others).

%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2. Papers. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The detector was introduced and described through the following papers:
[1] P. Dollár, Z. Tu, P. Perona and S. Belongie
&quot;Integral Channel Features&quot;, BMVC 2009.
[2] P. Dollár, S. Belongie and P. Perona
&quot;The Fastest Pedestrian Detector in the West,&quot; BMVC 2010.
[3] P. Dollár, R. Appel and W. Kienzle
&quot;Crosstalk Cascades for Frame-Rate Pedestrian Detection,&quot; ECCV 2012.
[4] P. Dollár, R. Appel, S. Belongie and P. Perona
&quot;Fast Feature Pyramids for Object Detection,&quot; PAMI 2014.
[5] W. Nam, P. Dollár, and J.H. Han
&quot;Local Decorrelation For Improved Pedestrian Detection,&quot; NIPS 2014.
Please see: http://vision.ucsd.edu/~pdollar/research.html#ObjectDetection

A short summary of the papers, organized by detector name:

[1] &quot;Integral Channel Features&quot; [ICF] - Introduced channel features and
modified the VJ framework to compute integral images (and Haar wavelets)
over the channels. Substantially outperformed HOG and at faster speeds.

[2] &quot;Fastest Pedestrian Detector in the West&quot; [FPDW] - We observed that
features computed at one scale can be used to approximate features at
nearby scales, increasing detector speed with little loss in accuracy.

[3] &quot;Crosstalk Cascades&quot; - This work coupled cascade evaluation at nearby
positions and scales to exploit correlations in detector responses at
neighboring locations. Further increased speed of the ICF detector.

[4] &quot;Aggregate Channel Features&quot; [ACF] - We found that single-scale
square Haar wavelets were sufficient in the ICF framework. Thus instead
of computing integral images and Haar wavelets, we simply smooth and
downsample the channels and the features are now single pixel lookups in
the &quot;aggregated&quot; channels.

[5] &quot;Locally Decorralated Channel Features&quot; [LDCF] - Filtering the
channel features with appropriate data-derived filters can remove local
correlations from the channels. Given decorrelated features, boosted
decision trees generalize much better giving a nice boost in accuracy.

This code implements ACF [4] and LDCF [5]. It does not implement ICF [1]
or FPDW [2] which are now obsolete and supplemented by ACF. Crosstalk
cascades [3] are also not used as classifier evalution in ACF is very
fast (no need to compute Haar wavelets). However, ACF does use the simple
but highly effective &quot;constant soft cascades&quot; from [3].

Please cite a subset of the above papers as appropriate if you end up
using this code to support a publication. Thanks!

%%%%%%%%%%%%%%%%%%%%%%%%%%%% 3. Setup. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

(A) Please install and setup the toolbox as described online:
http://vision.ucsd.edu/~pdollar/toolbox/doc/index.html
You may need to recompile for your system, see toolboxCompile. Note:
enabling OpenMP during compile will significantly speed training.

(B) Important: to train the detectors and run the detection demos you
need to install the Caltech Pedestrian Detection Benchmark available at:
http://www.vision.caltech.edu/Image_Datasets/CaltechPedestrians/
In particular, make sure to download and install:
(B1) Matlab evaluation/labeling code version 3.2.1 or later
(B2) INRIA data (necessary for the INRIA demo)
(B3) Caltech-USA data (necessary for the Caltech demo)
Please follow the instruction in the readme of the Caltech code. You only
need to download the data and code and place appropriately, there is no
need to look closely at the evaluation code. Initially running the demos
(acfDemoInria and acfDemoCal) will convert the data from the Caltech data
format to a format useable by ACF. If this step fails it means the
Caltech code or data is not properly setup.

%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4. Getting Started. %%%%%%%%%%%%%%%%%%%%%%%%

After performing the setup, see acfDemoInria.m and acfDemoCal.m for demos
and visualizations.

For an overview of available functionality please see detector/Contents.m
and channels/Contents.m. The various detector/acf*.m and channels/chns*.m
functions are well documented and worth checking for additional details.

Finally, a note about pre-trained models. The detector/models/ directory
contains four pre-trained pedestrian models (ACF/LDCF on INRIA/Caltech).
Running acfDemoInria/Cal.m with the ACF/LDCF flag toggled gives rise to
these models (just delete the existing models to retrain from scratch).
Note, however, that results will differ by up to +/-2% MR depending on
operating system and random seed (see opts.seed), and the models here are
not exactly equivalent to the models in the papers (due to evolution of
the code). Small changes in MR should not be considered significant (nor
should they be used as a basis for publishing). Whenever making a change
I suggest training/testing the same model with multiple random seeds.

Enjoy and I hope you find the detectors useful :)</pre></div>





<!-- Start of Google Analytics Code -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4884268-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<!-- end of Google Analytics Code -->

<hr><address>Generated by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address>
</body>
</html>
5 changes: 3 additions & 2 deletions doc/detector/acfTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="
.imgDir - ['REQ'] dir containing test images
.gtDir - ['REQ'] dir containing test ground truth
.pLoad - [] params for bbGt&gt;bbLoad for test data (see bbGt&gt;bbLoad)
.pModify - [] params for acfModify for modifying detector
.thr - [.5] threshold on overlap area for comparing two bbs
.mul - [0] if true allow multiple matches to each gt
.reapply - [0] if true re-apply detector even if bbs already computed
Expand All @@ -49,9 +50,9 @@ <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="

EXAMPLE

See also <a href="acfTrain.html" class="code" title="function detector = acfTrain( varargin )">acfTrain</a>, <a href="acfDetect.html" class="code" title="function bbs = acfDetect( I, detector, fileName )">acfDetect</a>, <a href="acfDemoInria.html" class="code" title="">acfDemoInria</a>, <a href="bbGt.html" class="code" title="function varargout = bbGt( action, varargin )">bbGt</a>
See also <a href="acfTrain.html" class="code" title="function detector = acfTrain( varargin )">acfTrain</a>, <a href="acfDetect.html" class="code" title="function bbs = acfDetect( I, detector, fileName )">acfDetect</a>, <a href="acfModify.html" class="code" title="function detector = acfModify( detector, varargin )">acfModify</a>, <a href="acfDemoInria.html" class="code" title="">acfDemoInria</a>, <a href="bbGt.html" class="code" title="function varargout = bbGt( action, varargin )">bbGt</a>

Piotr's Computer Vision Matlab Toolbox Version 3.22
Piotr's Computer Vision Matlab Toolbox Version 3.40
Copyright 2014 Piotr Dollar. [pdollar-at-gmail.com]
Licensed under the Simplified BSD License [see external/bsd.txt]</pre></div>

Expand Down
Loading

0 comments on commit 07cff1b

Please sign in to comment.