From 4403e71b330b42d3cda1e0721fb645cf41bac14f Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sun, 20 May 2018 15:43:15 +0000
Subject: [PATCH] Supported files for training: jpg, jpeg, bmp, png, ppm - and UPPER CASE extensions
---
src/yolo.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/yolo.c b/src/yolo.c
index 4481165..28f905f 100644
--- a/src/yolo.c
+++ b/src/yolo.c
@@ -252,11 +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);
- find_replace(labelpath, ".ppm", ".txt", labelpath);
+ replace_image_to_label(path, labelpath);
int num_labels = 0;
box_label *truth = read_boxes(labelpath, &num_labels);
--
Gitblit v1.10.0