From df076653e00db69c6fb57869981f5196a8f55e70 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 13 Mar 2018 16:04:39 +0000
Subject: [PATCH] Minor fix
---
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