Commit 4d3cef36 authored by Davis King's avatar Davis King

Minor changes to avoid compiler warnings

parent f56b8a10
...@@ -199,7 +199,7 @@ namespace dlib ...@@ -199,7 +199,7 @@ namespace dlib
const image_type& img const image_type& img
) )
{ {
int levels = 0; unsigned long levels = 0;
rectangle rect = get_rect(img); rectangle rect = get_rect(img);
// figure out how many pyramid levels we should be using based on the image size // figure out how many pyramid levels we should be using based on the image size
......
...@@ -171,7 +171,7 @@ namespace dlib ...@@ -171,7 +171,7 @@ namespace dlib
// make sure requires clause is not broken // make sure requires clause is not broken
DLIB_ASSERT( is_learning_problem(images,truth_rects) == true && DLIB_ASSERT( is_learning_problem(images,truth_rects) == true &&
0 < overlap_eps && overlap_eps <= 1 && 0 < overlap_eps && overlap_eps <= 1 &&
1 < folds && folds <= images.size(), 1 < folds && folds <= static_cast<long>(images.size()),
"\t matrix cross_validate_object_detection_trainer()" "\t matrix cross_validate_object_detection_trainer()"
<< "\n\t invalid inputs were given to this function" << "\n\t invalid inputs were given to this function"
<< "\n\t is_learning_problem(images,truth_rects): " << is_learning_problem(images,truth_rects) << "\n\t is_learning_problem(images,truth_rects): " << is_learning_problem(images,truth_rects)
...@@ -191,7 +191,7 @@ namespace dlib ...@@ -191,7 +191,7 @@ namespace dlib
std::vector<unsigned long> train_idx_set; std::vector<unsigned long> train_idx_set;
std::vector<unsigned long> test_idx_set; std::vector<unsigned long> test_idx_set;
for (unsigned long i = 0; i < test_size; ++i) for (long i = 0; i < test_size; ++i)
test_idx_set.push_back(test_idx++); test_idx_set.push_back(test_idx++);
unsigned long train_idx = test_idx%images.size(); unsigned long train_idx = test_idx%images.size();
......
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