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
fe1a15f3
Commit
fe1a15f3
authored
Feb 11, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added face recognition example
parent
bcf6bd9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
2 deletions
+3
-2
CMakeLists.txt
examples/CMakeLists.txt
+1
-0
dnn_face_recognition_ex.cpp
examples/dnn_face_recognition_ex.cpp
+0
-0
dnn_metric_learning_on_images_ex.cpp
examples/dnn_metric_learning_on_images_ex.cpp
+2
-2
bald_guys.jpg
examples/faces/bald_guys.jpg
+0
-0
No files found.
examples/CMakeLists.txt
View file @
fe1a15f3
...
...
@@ -45,6 +45,7 @@ ENDMACRO()
if
(
NOT USING_OLD_VISUAL_STUDIO_COMPILER
)
add_example
(
dnn_metric_learning_on_images_ex
)
add_example
(
dnn_metric_learning_ex
)
add_example
(
dnn_face_recognition_ex
)
add_example
(
dnn_introduction_ex
)
add_example
(
dnn_introduction2_ex
)
add_example
(
dnn_inception_ex
)
...
...
examples/dnn_face_recognition_ex.cpp
0 → 100644
View file @
fe1a15f3
This diff is collapsed.
Click to expand it.
examples/dnn_metric_learning_on_images_ex.cpp
View file @
fe1a15f3
...
...
@@ -212,13 +212,13 @@ int main(int argc, char** argv)
net_type
net
;
dnn_trainer
<
net_type
>
trainer
(
net
,
sgd
(
0.000
5
,
0.9
));
dnn_trainer
<
net_type
>
trainer
(
net
,
sgd
(
0.000
1
,
0.9
));
trainer
.
set_learning_rate
(
0.1
);
trainer
.
be_verbose
();
trainer
.
set_synchronization_file
(
"face_metric_sync"
,
std
::
chrono
::
minutes
(
5
));
// I've set this to something really small to make the example terminate
// sooner. But when you really want to train a good model you should set
// this to something like
8
000 so training doesn't terminate too early.
// this to something like
10
000 so training doesn't terminate too early.
trainer
.
set_iterations_without_progress_threshold
(
300
);
// If you have a lot of data then it might not be reasonable to load it all
...
...
examples/faces/bald_guys.jpg
0 → 100644
View file @
fe1a15f3
633 KB
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