From 710cb54db36d3b3223f0a14d7e79bd1f26f46f4b Mon Sep 17 00:00:00 2001 From: perseusdg Date: Sat, 5 Jun 2021 22:12:15 +0530 Subject: [PATCH] Centernet fix for windows --- Issues.md | 1 - src/CenternetDetection.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 Issues.md diff --git a/Issues.md b/Issues.md deleted file mode 100644 index 4875b13..0000000 --- a/Issues.md +++ /dev/null @@ -1 +0,0 @@ -1)error C2131 @ Yolo3Detection.cpp(97) -> expression doesnt evaluate to a constant caused to read of variable outside its lifetime \ No newline at end of file diff --git a/src/CenternetDetection.cpp b/src/CenternetDetection.cpp index 46757f4..bd09005 100644 --- a/src/CenternetDetection.cpp +++ b/src/CenternetDetection.cpp @@ -347,21 +347,21 @@ void CenternetDetection::postprocess(const int bi, const bool mAP){ new_pt1.at(0,0)=static_cast(trans2.at(0,0))*bbx0[i] + static_cast(trans2.at(0,1))*bby0[i] + static_cast(trans2.at(0,2))*1.0; - new_pt1.at(0,1)=static_cast(trans2.at(1,0))*bbx0[i] + + new_pt1.at(1,0)=static_cast(trans2.at(1,0))*bbx0[i] + static_cast(trans2.at(1,1))*bby0[i] + static_cast(trans2.at(1,2))*1.0; new_pt2.at(0,0)=static_cast(trans2.at(0,0))*bbx1[i] + static_cast(trans2.at(0,1))*bby1[i] + static_cast(trans2.at(0,2))*1.0; - new_pt2.at(0,1)=static_cast(trans2.at(1,0))*bbx1[i] + + new_pt2.at(1,0)=static_cast(trans2.at(1,0))*bbx1[i] + static_cast(trans2.at(1,1))*bby1[i] + static_cast(trans2.at(1,2))*1.0; target_coords[i*4] = new_pt1.at(0,0); - target_coords[i*4+1] = new_pt1.at(0,1); + target_coords[i*4+1] = new_pt1.at(1,0); target_coords[i*4+2] = new_pt2.at(0,0); - target_coords[i*4+3] = new_pt2.at(0,1); + target_coords[i*4+3] = new_pt2.at(1,0); } detected.clear();