From 726cebd3fb67d65ec6d2d49fa6bfba4c053085df Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 02 Apr 2018 12:02:53 +0000
Subject: [PATCH] Fixed detector recall

---
 src/network.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/network.c b/src/network.c
index 51d290c..175c102 100644
--- a/src/network.c
+++ b/src/network.c
@@ -543,7 +543,7 @@
 	float **probs = calloc(l.w*l.h*l.n, sizeof(float *));
 	int i, j;
 	for (j = 0; j < l.w*l.h*l.n; ++j) probs[j] = calloc(l.classes, sizeof(float *));
-	get_region_boxes(l, w, h, thresh, probs, boxes, 0, map);
+	get_region_boxes(l, 1, 1, thresh, probs, boxes, 0, map);
 	for (j = 0; j < l.w*l.h*l.n; ++j) {
 		dets[j].classes = l.classes;
 		dets[j].bbox = boxes[j];

--
Gitblit v1.10.0