From 8df8b36f313688e3fb2b1240609c0cf12d8cf7b2 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Mon, 12 Feb 2018 22:49:40 +0300 Subject: [PATCH] Compile fix --- src/yolo_v2_class.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yolo_v2_class.hpp b/src/yolo_v2_class.hpp index 5aa36313..8abb9e2f 100644 --- a/src/yolo_v2_class.hpp +++ b/src/yolo_v2_class.hpp @@ -193,8 +193,7 @@ public: void update_cur_bbox_vec(std::vector _cur_bbox_vec) { cur_bbox_vec = _cur_bbox_vec; - good_bbox_vec_flags.resize(cur_bbox_vec.size()); - for (auto &i : good_bbox_vec_flags) i = true; + good_bbox_vec_flags = std::vector(cur_bbox_vec.size(), true); cv::Mat prev_pts, cur_pts_flow_cpu; for (auto &i : cur_bbox_vec) {