From a2666d5b3cfdcbab1e2eb66ca41f8b6835d4ffc8 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 22 May 2018 15:23:48 +0000
Subject: [PATCH] Fixed replace_image_to_label(): replaces directories only for Pascal VOC and COCO, replaces only extensions for other.
---
src/darknet.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/darknet.c b/src/darknet.c
index 0f6af48..5407269 100644
--- a/src/darknet.c
+++ b/src/darknet.c
@@ -1,3 +1,8 @@
+#ifdef _DEBUG
+#include <stdlib.h>
+#include <crtdbg.h>
+#endif
+
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
@@ -350,6 +355,10 @@
int main(int argc, char **argv)
{
+#ifdef _DEBUG
+ _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
+#endif
+
//test_resize("data/bad.jpg");
//test_box();
//test_convolutional_layer();
--
Gitblit v1.10.0