From 4a408d5e076451df6eed2fa44646062eec86c611 Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 5 Sep 2016 15:40:54 -0400 Subject: [PATCH] Fixed example --- examples/dnn_mmod_ex.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/dnn_mmod_ex.cpp b/examples/dnn_mmod_ex.cpp index f460abfcf..89907db88 100644 --- a/examples/dnn_mmod_ex.cpp +++ b/examples/dnn_mmod_ex.cpp @@ -154,8 +154,9 @@ int main(int argc, char** argv) try cropper.set_chip_dims(200, 200); cropper.set_min_object_height(0.2); dlib::rand rnd; - // Run the trainer until the learning rate gets small - while(false && trainer.get_learning_rate() >= 1e-4) + // Run the trainer until the learning rate gets small. This will probably take several + // hours. + while(trainer.get_learning_rate() >= 1e-4) { 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