Commit a546ba96 authored by Vlad Shakhuro's avatar Vlad Shakhuro

Fix warnings

parent 13053d6b
......@@ -292,7 +292,7 @@ void WaldBoost::fit(Mat& data_pos, Mat& data_neg)
}
double cascade_threshold = -1;
minMaxIdx(pos_trace, &cascade_threshold);
cascade_thresholds_.push_back(cascade_threshold);
cascade_thresholds_.push_back((float)cascade_threshold);
std::cerr << "i=" << std::setw(4) << i;
std::cerr << " feat=" << std::setw(5) << min_feature_ind;
......
......@@ -120,7 +120,7 @@ void WBDetectorImpl::train(
const int stages[] = {64, 128, 256, 512, 1024};
const int stage_count = sizeof(stages) / sizeof(*stages);
const int stage_neg = pos_imgs.size() * 5;
const int stage_neg = (int)(pos_imgs.size() * 5);
const int max_per_image = 100;
const float scales_arr[] = {.3f, .4f, .5f, .6f, .7f, .8f, .9f, 1.0f};
......
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