From a6c51e3b758aee7fd3a6f1d37daa8dcad4891e52 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 08 Mar 2018 22:42:58 +0000
Subject: [PATCH] Fixes for small objects. And fixes of densenet201_yolo.cfg, resnet50_yolo.cfg, resnet152_yolo.cfg

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

diff --git a/src/detector.c b/src/detector.c
index f8515d4..59182c4 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -918,7 +918,7 @@
 		float box_h = points->data.fl[i * 2 + 1];
 		//int cluster_idx = labels->data.i[i];		
 		int cluster_idx = 0;
-		float min_dist = 1000000;
+		float min_dist = FLT_MAX;
 		for (j = 0; j < num_of_clusters; ++j) {
 			float anchor_w = centers->data.fl[j * 2];
 			float anchor_h = centers->data.fl[j * 2 + 1];

--
Gitblit v1.10.0