From 0e721e5cae66214a57fa91fd671854d8f479852e Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 29 Aug 2020 09:09:54 -0400 Subject: [PATCH] Fix bug in bounding box regression loss. --- dlib/dnn/loss.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlib/dnn/loss.h b/dlib/dnn/loss.h index e4b913a3c..a2fb07908 100644 --- a/dlib/dnn/loss.h +++ b/dlib/dnn/loss.h @@ -1582,9 +1582,9 @@ namespace dlib double dw = out_data[dets[i].tensor_offset_dw]; double dh = out_data[dets[i].tensor_offset_dh]; - dpoint p = dcenter(dets[i].rect_bbr); - double w = dets[i].rect_bbr.width()-1; - double h = dets[i].rect_bbr.height()-1; + dpoint p = dcenter(dets[i].rect); + double w = dets[i].rect.width()-1; + double h = dets[i].rect.height()-1; drectangle truth_box = (*truth)[hittruth.second].rect; dpoint p_truth = dcenter(truth_box);