From 46028c6621f1a75874054db23dfa103a7759a483 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 21 May 2018 16:12:55 +0000
Subject: [PATCH] Fixed demo for video files: is used do_nms_sort() instead of do_nms_obj().

---
 src/yolo.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/yolo.c b/src/yolo.c
index 238454e..28f905f 100644
--- a/src/yolo.c
+++ b/src/yolo.c
@@ -252,10 +252,7 @@
         if (nms) do_nms(boxes, probs, side*side*l.n, 1, nms);
 
         char labelpath[4096];
-        find_replace(path, "images", "labels", labelpath);
-        find_replace(labelpath, "JPEGImages", "labels", labelpath);
-        find_replace(labelpath, ".jpg", ".txt", labelpath);
-        find_replace(labelpath, ".JPEG", ".txt", labelpath);
+		replace_image_to_label(path, labelpath);
 
         int num_labels = 0;
         box_label *truth = read_boxes(labelpath, &num_labels);

--
Gitblit v1.10.0