mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Update detector.c
This commit is contained in:
parent
f6d8617360
commit
6c8ed1bde8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user