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
5ba192b7
Commit
5ba192b7
authored
Sep 05, 2014
by
Davis King
Browse files
Added missing assert
parent
5bcfe4f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dlib/image_processing/shape_predictor.h
dlib/image_processing/shape_predictor.h
+4
-0
No files found.
dlib/image_processing/shape_predictor.h
View file @
5ba192b7
...
...
@@ -581,6 +581,10 @@ namespace dlib
if
(
num_parts
==
0
)
{
num_parts
=
objects
[
i
][
j
].
num_parts
();
DLIB_CASSERT
(
objects
[
i
][
j
].
num_parts
()
!=
0
,
"
\t
shape_predictor shape_predictor_trainer::train()"
<<
"
\n\t
You can't give objects that don't have any parts to the trainer."
);
}
else
{
...
...
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