diff --git a/examples/yolov2.cpp b/examples/yolov2.cpp index 4be9c9a2f..ad7e74ba6 100644 --- a/examples/yolov2.cpp +++ b/examples/yolov2.cpp @@ -46,7 +46,7 @@ static int detect_yolov2(const cv::Mat& bgr, std::vector& objects) // the Caffe-YOLOv2-Windows style // X' = X * scale - mean - const float mean_vals[3] = {0.5f, 0.5f, 0.5f}; + const float mean_vals[3] = {1.0f, 1.0f, 1.0f}; const float norm_vals[3] = {0.007843f, 0.007843f, 0.007843f}; in.substract_mean_normalize(0, norm_vals); in.substract_mean_normalize(mean_vals, 0); diff --git a/examples/yolov3.cpp b/examples/yolov3.cpp index 86332d225..a32d76bc4 100644 --- a/examples/yolov3.cpp +++ b/examples/yolov3.cpp @@ -52,7 +52,7 @@ static int detect_yolov3(const cv::Mat& bgr, std::vector& objects) // the Caffe-yolov3-Windows style // X' = X * scale - mean - const float mean_vals[3] = {0.5f, 0.5f, 0.5f}; + const float mean_vals[3] = {1.0f, 1.0f, 1.0f}; const float norm_vals[3] = {0.007843f, 0.007843f, 0.007843f}; in.substract_mean_normalize(0, norm_vals); in.substract_mean_normalize(mean_vals, 0);