Commit fe1a15f3 authored by Davis King's avatar Davis King

Added face recognition example

parent bcf6bd9a
......@@ -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)
......
This diff is collapsed.
......@@ -212,13 +212,13 @@ int main(int argc, char** argv)
net_type net;
dnn_trainer<net_type> trainer(net, sgd(0.0005, 0.9));
dnn_trainer<net_type> trainer(net, sgd(0.0001, 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 8000 so training doesn't terminate too early.
// this to something like 10000 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment