Commit 63e17485 authored by Davis King's avatar Davis King

Fixed constness bug

parent 7a6ec2f1
......@@ -205,7 +205,7 @@ namespace dlib
impl::array_subset_helper<image_array_type> array_subset(images, train_idx_set);
const typename trainer_type::trained_function_type& detector = trainer.train(array_subset, training_rects);
typename trainer_type::trained_function_type detector = trainer.train(array_subset, training_rects);
for (unsigned long i = 0; i < test_idx_set.size(); ++i)
{
const std::vector<rectangle>& hits = detector(images[test_idx_set[i]]);
......
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