Update detector.c

This commit is contained in:
qwerty 2018-07-07 02:02:50 +00:00 committed by GitHub
parent f6d8617360
commit 6c8ed1bde8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -539,7 +539,7 @@ void validate_detector_recall(char *cfgfile, char *weightfile)
++total; ++total;
box t = {truth[j].x, truth[j].y, truth[j].w, truth[j].h}; box t = {truth[j].x, truth[j].y, truth[j].w, truth[j].h};
float best_iou = 0; 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); float iou = box_iou(dets[k].bbox, t);
if(dets[k].objectness > thresh && iou > best_iou){ if(dets[k].objectness > thresh && iou > best_iou){
best_iou = iou; best_iou = iou;