From 4a42031c0dba948c02f923444bf37b794d4ccf4e Mon Sep 17 00:00:00 2001
From: Tino Hager <tino.hager@nager.at>
Date: Sun, 24 Jun 2018 18:28:12 +0000
Subject: [PATCH] Merge branch 'master' of https://github.com/AlexeyAB/darknet

---
 src/data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/data.c b/src/data.c
index a685fb4..d92e307 100644
--- a/src/data.c
+++ b/src/data.c
@@ -342,7 +342,7 @@
 			system(buff);
 			continue;
 		}
-		if (x < 0 || x > 1 || y < 0 || y > 1) {
+		if (x <= 0 || x > 1 || y <= 0 || y > 1) {
 			printf("\n Wrong annotation: x = %f, y = %f \n", x, y);
 			sprintf(buff, "echo %s \"Wrong annotation: x = %f, y = %f\" >> bad_label.list", labelpath, x, y);
 			system(buff);

--
Gitblit v1.10.0