From 15c89e7a714e7e37c13618eace9325a06f0642fc Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 12 Mar 2018 11:11:53 +0000
Subject: [PATCH] Added include for sprintf
---
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