Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
3f92a5cf
Commit
3f92a5cf
authored
Aug 28, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved impossible_labeling_error to error.h
parent
fb44c7ba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
25 deletions
+21
-25
error.h
dlib/error.h
+21
-0
structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+0
-8
structural_svm_object_detection_problem_abstract.h
dlib/svm/structural_svm_object_detection_problem_abstract.h
+0
-17
No files found.
dlib/error.h
View file @
3f92a5cf
...
...
@@ -420,6 +420,27 @@ namespace dlib
!*/
};
// ----------------------------------------------------------------------------------------
class
impossible_labeling_error
:
public
dlib
::
error
{
/*!
WHAT THIS OBJECT REPRESENTS
This is the exception thrown by code that trains object detectors (e.g.
structural_svm_object_detection_problem) when they detect that the set of
truth boxes given to the training algorithm contains some impossible to
obtain outputs.
This kind of problem can happen when the set of image positions scanned by
the underlying object detection method doesn't include the truth rectangle
as a possible output. Another possibility is when two truth boxes are very
close together and hard coded non-max suppression logic would prevent two
boxes in such close proximity from being output.
!*/
public
:
impossible_labeling_error
(
const
std
::
string
&
msg
)
:
dlib
::
error
(
msg
)
{};
};
// ----------------------------------------------------------------------------------------
}
...
...
dlib/svm/structural_svm_object_detection_problem.h
View file @
3f92a5cf
...
...
@@ -15,14 +15,6 @@
namespace
dlib
{
// ----------------------------------------------------------------------------------------
class
impossible_labeling_error
:
public
dlib
::
error
{
public
:
impossible_labeling_error
(
const
std
::
string
&
msg
)
:
dlib
::
error
(
msg
)
{};
};
// ----------------------------------------------------------------------------------------
template
<
...
...
dlib/svm/structural_svm_object_detection_problem_abstract.h
View file @
3f92a5cf
...
...
@@ -12,23 +12,6 @@
namespace
dlib
{
// ----------------------------------------------------------------------------------------
class
impossible_labeling_error
:
public
dlib
::
error
{
/*!
WHAT THIS OBJECT REPRESENTS
This is the exception thrown by the structural_svm_object_detection_problem
when it detects that the image_scanner_type it is working with is incapable
of representing the truth rectangles it has been asked to predict.
This kind of problem can happen when the test_box_overlap object indicates
that two ground truth rectangles overlap and are therefore not allowed to
both be output at the same time. Or alternatively, if there are not enough
detection templates to cover the variety of truth rectangle shapes.
!*/
};
// ----------------------------------------------------------------------------------------
template
<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment