From 6c8ed1bde84b27e9fbc0259e4ffd415a7d2c951b Mon Sep 17 00:00:00 2001 From: qwerty Date: Sat, 7 Jul 2018 02:02:50 +0000 Subject: [PATCH] Update detector.c --- examples/detector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/detector.c b/examples/detector.c index 326e07f1..a46763ab 100644 --- a/examples/detector.c +++ b/examples/detector.c @@ -539,7 +539,7 @@ void validate_detector_recall(char *cfgfile, char *weightfile) ++total; box t = {truth[j].x, truth[j].y, truth[j].w, truth[j].h}; float best_iou = 0; - for(k = 0; k < l.w*l.h*l.n; ++k){ + for(k = 0; k < nboxes; ++k){ float iou = box_iou(dets[k].bbox, t); if(dets[k].objectness > thresh && iou > best_iou){ best_iou = iou;