From fc496d52bf22a0bb257300d3c79be9cd80e722cb Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 12 Apr 2018 19:32:57 +0000
Subject: [PATCH] Yolo can be used from Python 2.x using /darknet.py on Linux or darknet/x64/darknet.py on Windows

---
 src/box.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/box.c b/src/box.c
index e02685d..00e3edb 100644
--- a/src/box.c
+++ b/src/box.c
@@ -246,7 +246,7 @@
     return 0;
 }
 
-void do_nms_sort(box *boxes, float **probs, int total, int classes, float thresh)
+void do_nms_sort_v2(box *boxes, float **probs, int total, int classes, float thresh)
 {
     int i, j, k;
     sortable_bbox *s = calloc(total, sizeof(sortable_bbox));
@@ -292,8 +292,9 @@
 	return 0;
 }
 
-void do_nms_obj_v3(detection *dets, int total, int classes, float thresh)
+void do_nms_obj(detection *dets, int total, int classes, float thresh)
 {
+	printf(" total = %d, classes = %d, thresh = %f \n", total, classes, thresh);
 	int i, j, k;
 	k = total - 1;
 	for (i = 0; i <= k; ++i) {
@@ -328,7 +329,7 @@
 	}
 }
 
-void do_nms_sort_v3(detection *dets, int total, int classes, float thresh)
+void do_nms_sort(detection *dets, int total, int classes, float thresh)
 {
 	int i, j, k;
 	k = total - 1;

--
Gitblit v1.10.0