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
4a408d5e
Commit
4a408d5e
authored
Sep 05, 2016
by
Davis King
Browse files
Fixed example
parent
d5dc371f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
examples/dnn_mmod_ex.cpp
examples/dnn_mmod_ex.cpp
+3
-2
No files found.
examples/dnn_mmod_ex.cpp
View file @
4a408d5e
...
@@ -154,8 +154,9 @@ int main(int argc, char** argv) try
...
@@ -154,8 +154,9 @@ int main(int argc, char** argv) try
cropper
.
set_chip_dims
(
200
,
200
);
cropper
.
set_chip_dims
(
200
,
200
);
cropper
.
set_min_object_height
(
0.2
);
cropper
.
set_min_object_height
(
0.2
);
dlib
::
rand
rnd
;
dlib
::
rand
rnd
;
// Run the trainer until the learning rate gets small
// Run the trainer until the learning rate gets small. This will probably take several
while
(
false
&&
trainer
.
get_learning_rate
()
>=
1e-4
)
// hours.
while
(
trainer
.
get_learning_rate
()
>=
1e-4
)
{
{
cropper
(
150
,
images_train
,
face_boxes_train
,
mini_batch_samples
,
mini_batch_labels
);
cropper
(
150
,
images_train
,
face_boxes_train
,
mini_batch_samples
,
mini_batch_labels
);
// We can also randomly jitter the colors and that often helps a detector
// We can also randomly jitter the colors and that often helps a detector
...
...
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