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;
修改前:
修改后: