mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Fixed constness bug
This commit is contained in:
parent
7a6ec2f162
commit
63e17485c1
@ -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]]);
|
||||
|
Loading…
Reference in New Issue
Block a user