Commit 61591b13 authored by Davis King's avatar Davis King

Seeded random number generator with the clock since that's generally a good

thing to do for this kind of training.
parent 02c27ff9
......@@ -207,7 +207,7 @@ int main(int argc, char** argv) try
// For example, the loop below stream MNIST data to out trainer.
std::vector<matrix<unsigned char>> mini_batch_samples;
std::vector<unsigned long> mini_batch_labels;
dlib::rand rnd;
dlib::rand rnd(time(0));
// Loop until the trainer's automatic shrinking has shrunk the step size by
// 1e-3. For the default shrinks amount of 0.1 this means stop after it
// shrinks it 3 times.
......
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