From 756e3dca26e5c4f853203fcc8f5b5af1da234eeb Mon Sep 17 00:00:00 2001 From: JYChen Date: Sat, 7 May 2022 10:06:57 +0800 Subject: [PATCH] fix cpp infer error in blazeface (#5892) --- deploy/cpp/src/object_detector.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/deploy/cpp/src/object_detector.cc b/deploy/cpp/src/object_detector.cc index 8d72408bf..509928bd1 100644 --- a/deploy/cpp/src/object_detector.cc +++ b/deploy/cpp/src/object_detector.cc @@ -213,10 +213,6 @@ void ObjectDetector::Postprocess( cv::Mat raw_mat = mats[im_id]; int rh = 1; int rw = 1; - if (config_.arch_ == "Face") { - rh = raw_mat.rows; - rw = raw_mat.cols; - } for (int j = start_idx; j < start_idx + bbox_num[im_id]; j++) { if (is_rbox) { // Class id -- GitLab