Commit 9712e649 authored by Davis King's avatar Davis King

Updated spec to reference the paper describing this solver.

parent f711daaa
...@@ -51,30 +51,17 @@ namespace dlib ...@@ -51,30 +51,17 @@ namespace dlib
and it must contain objects which can be accepted by image_scanner_type::load(). and it must contain objects which can be accepted by image_scanner_type::load().
WHAT THIS OBJECT REPRESENTS WHAT THIS OBJECT REPRESENTS
This object is a tool for learning the parameter vector needed to use This object is a tool for learning the parameter vector needed to use a
a scan_image_pyramid or scan_image_boxes object. scan_image_pyramid, scan_fhog_pyramid, scan_image_custom, or
scan_image_boxes object.
It learns the parameter vector by formulating the problem as a structural It learns the parameter vector by formulating the problem as a structural
SVM problem. The general approach is similar to the method discussed in SVM problem. The exact details of the method are described in the paper
Learning to Localize Objects with Structured Output Regression by Max-Margin Object Detection by Davis E. King (http://arxiv.org/abs/1502.00046).
Matthew B. Blaschko and Christoph H. Lampert. However, the method has
been extended to datasets with multiple, potentially overlapping, objects
per image and the measure of loss is different from what is described in
the paper.
In particular, the loss is measured as follows:
let FA == the number of false alarms produced by a labeling of an image.
let MT == the number of targets missed by a labeling of an image.
Then the loss for a particular labeling is the quantity:
FA*get_loss_per_false_alarm() + MT*get_loss_per_missed_target()
A detection is considered a false alarm if it doesn't match with any
of the ground truth rectangles or if it is a duplicate detection of a
truth rectangle. Finally, for the purposes of calculating loss, a match
is determined using the following formula where rectangles A and B match
if and only if:
A.intersect(B).area()/(A+B).area() > get_match_eps()
!*/ !*/
public: public:
structural_svm_object_detection_problem( structural_svm_object_detection_problem(
......
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