Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
a6602c37
Commit
a6602c37
authored
Jul 07, 2017
by
Davis King
Browse files
Improved error message from the svmstruct object detector.
parent
ebdc064c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
dlib/svm/structural_svm_object_detection_problem.h
dlib/svm/structural_svm_object_detection_problem.h
+10
-9
No files found.
dlib/svm/structural_svm_object_detection_problem.h
View file @
a6602c37
...
@@ -236,7 +236,7 @@ namespace dlib
...
@@ -236,7 +236,7 @@ namespace dlib
sout
<<
"the truth labels for an image contain rectangles which overlap according to the "
;
sout
<<
"the truth labels for an image contain rectangles which overlap according to the "
;
sout
<<
"test_box_overlap object supplied for non-max suppression. To resolve this, you "
;
sout
<<
"test_box_overlap object supplied for non-max suppression. To resolve this, you "
;
sout
<<
"either need to relax the test_box_overlap object so it doesn't mark these rectangles as "
;
sout
<<
"either need to relax the test_box_overlap object so it doesn't mark these rectangles as "
;
sout
<<
"overlapping or adjust the truth rectangles. "
;
sout
<<
"overlapping or adjust the truth rectangles
in your training dataset
. "
;
// make sure the above string fits nicely into a command prompt window.
// make sure the above string fits nicely into a command prompt window.
string
temp
=
sout
.
str
();
string
temp
=
sout
.
str
();
...
@@ -266,14 +266,15 @@ namespace dlib
...
@@ -266,14 +266,15 @@ namespace dlib
ostringstream
sout
;
ostringstream
sout
;
sout
<<
"An impossible set of object labels was detected. This is happening because "
;
sout
<<
"An impossible set of object labels was detected. This is happening because "
;
sout
<<
"none of the object locations checked by the supplied image scanner is a close "
;
sout
<<
"none of the object locations checked by the supplied image scanner is a close "
;
sout
<<
"enough match to one of the truth boxes. To resolve this you need to either lower the match_eps "
;
sout
<<
"enough match to one of the truth boxes in your training dataset. To resolve this "
;
sout
<<
"or adjust the settings of the image scanner so that it hits this truth box. "
;
sout
<<
"you need to either lower the match_eps, adjust the settings of the image scanner "
;
sout
<<
"Or you could adjust the "
;
sout
<<
"so that it is capable of hitting this truth box, or adjust the offending truth rectangle so it "
;
sout
<<
"offending truth rectangle so it can be matched by the current image scanner. Also, if you "
;
sout
<<
"can be matched by the current image scanner. Also, if you "
;
sout
<<
"are using the scan_image_pyramid object then you could try using a finer image pyramid "
;
sout
<<
"are using the scan_fhog_pyramid object then you could try using a finer image pyramid. "
;
sout
<<
"or adding more detection templates. E.g. if one of "
;
sout
<<
"Additionally, the scan_fhog_pyramid scans a fixed aspect ratio box across the image when it "
;
sout
<<
"your existing detection templates has a matching width/height ratio and smaller area "
;
sout
<<
"searches for objects. So if you are getting this error and you are using the scan_fhog_pyramid, "
;
sout
<<
"than the offending rectangle then a finer image pyramid would probably help."
;
sout
<<
"it's very likely the problem is that your training dataset contains truth rectangles of widely "
;
sout
<<
"varying aspect ratios. The solution is to make sure your training boxes all have about the same aspect ratio. "
;
// make sure the above string fits nicely into a command prompt window.
// make sure the above string fits nicely into a command prompt window.
...
...
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