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
9a845c51
Commit
9a845c51
authored
Jun 11, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of cleanup
parent
5ed1c2f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
shape_predictor.cpp
tools/python/src/shape_predictor.cpp
+1
-0
shape_predictor.h
tools/python/src/shape_predictor.h
+13
-13
No files found.
tools/python/src/shape_predictor.cpp
View file @
9a845c51
...
@@ -205,6 +205,7 @@ void bind_shape_predictors(py::module &m)
...
@@ -205,6 +205,7 @@ void bind_shape_predictors(py::module &m)
.
def_readwrite
(
"num_threads"
,
&
type
::
num_threads
,
.
def_readwrite
(
"num_threads"
,
&
type
::
num_threads
,
"Use this many threads/CPU cores for training."
)
"Use this many threads/CPU cores for training."
)
.
def
(
"__str__"
,
&::
print_shape_predictor_training_options
)
.
def
(
"__str__"
,
&::
print_shape_predictor_training_options
)
.
def
(
"__repr__"
,
&::
print_shape_predictor_training_options
)
.
def
(
py
::
pickle
(
&
getstate
<
type
>
,
&
setstate
<
type
>
));
.
def
(
py
::
pickle
(
&
getstate
<
type
>
,
&
setstate
<
type
>
));
}
}
{
{
...
...
tools/python/src/shape_predictor.h
View file @
9a845c51
...
@@ -105,22 +105,22 @@ namespace dlib
...
@@ -105,22 +105,22 @@ namespace dlib
}
}
}
}
string
print_shape_predictor_training_options
(
const
shape_predictor_training_options
&
o
)
inline
string
print_shape_predictor_training_options
(
const
shape_predictor_training_options
&
o
)
{
{
std
::
ostringstream
sout
;
std
::
ostringstream
sout
;
sout
<<
"shape_predictor_training_options("
sout
<<
"shape_predictor_training_options("
<<
"be_verbose="
<<
o
.
be_verbose
<<
","
<<
"be_verbose="
<<
o
.
be_verbose
<<
",
"
<<
"cascade_depth="
<<
o
.
cascade_depth
<<
","
<<
"cascade_depth="
<<
o
.
cascade_depth
<<
",
"
<<
"tree_depth="
<<
o
.
tree_depth
<<
","
<<
"tree_depth="
<<
o
.
tree_depth
<<
",
"
<<
"num_trees_per_cascade_level="
<<
o
.
num_trees_per_cascade_level
<<
","
<<
"num_trees_per_cascade_level="
<<
o
.
num_trees_per_cascade_level
<<
",
"
<<
"nu="
<<
o
.
nu
<<
","
<<
"nu="
<<
o
.
nu
<<
",
"
<<
"oversampling_amount="
<<
o
.
oversampling_amount
<<
","
<<
"oversampling_amount="
<<
o
.
oversampling_amount
<<
",
"
<<
"oversampling_translation_jitter="
<<
o
.
oversampling_translation_jitter
<<
","
<<
"oversampling_translation_jitter="
<<
o
.
oversampling_translation_jitter
<<
",
"
<<
"feature_pool_size="
<<
o
.
feature_pool_size
<<
","
<<
"feature_pool_size="
<<
o
.
feature_pool_size
<<
",
"
<<
"lambda_param="
<<
o
.
lambda_param
<<
","
<<
"lambda_param="
<<
o
.
lambda_param
<<
",
"
<<
"num_test_splits="
<<
o
.
num_test_splits
<<
","
<<
"num_test_splits="
<<
o
.
num_test_splits
<<
",
"
<<
"feature_pool_region_padding="
<<
o
.
feature_pool_region_padding
<<
","
<<
"feature_pool_region_padding="
<<
o
.
feature_pool_region_padding
<<
",
"
<<
"random_seed="
<<
o
.
random_seed
<<
","
<<
"random_seed="
<<
o
.
random_seed
<<
",
"
<<
"num_threads="
<<
o
.
num_threads
<<
"num_threads="
<<
o
.
num_threads
<<
")"
;
<<
")"
;
return
sout
.
str
();
return
sout
.
str
();
...
...
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