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/coco.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/coco.c b/src/coco.c
index c95e30d..86da5b5 100644
--- a/src/coco.c
+++ b/src/coco.c
@@ -281,10 +281,7 @@
if (nms) do_nms(boxes, probs, side*side*l.n, 1, nms_thresh);
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