yolov3计算recall的更新

darknet编译完成计算recall,IoU
发现recall偏低
在github上发现更新detector.c

原文链接:fix error in validate_detector_recall #952

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;

修改前:
在这里插入图片描述
修改后:在这里插入图片描述

发布了2 篇原创文章 · 获赞 0 · 访问量 12

猜你喜欢

转载自blog.csdn.net/Jaredzzz/article/details/104488463
今日推荐