From f0abcfa02b2094396f955c743f7f11fcdb2e3d13 Mon Sep 17 00:00:00 2001
From: IlyaOvodov <b@ovdv.ru>
Date: Mon, 04 Jun 2018 15:57:15 +0000
Subject: [PATCH] Merge branch 'master' of https://github.com/AlexeyAB/darknet into Fix_get_color_depth

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

diff --git a/src/yolo_layer.c b/src/yolo_layer.c
index c1309c8..f79bc41 100644
--- a/src/yolo_layer.c
+++ b/src/yolo_layer.c
@@ -202,7 +202,8 @@
                         box truth = float_to_box_stride(state.truth + t*(4 + 1) + b*l.truths, 1);
 						int class_id = state.truth[t*(4 + 1) + b*l.truths + 4];
 						if (class_id >= l.classes) {
-							printf("Warning: in txt-labels class_id=%d >= classes=%d in cfg-file\n", class_id, l.classes);
+							printf(" Warning: in txt-labels class_id=%d >= classes=%d in cfg-file. In txt-labels class_id should be [from 0 to %d] \n", class_id, l.classes, l.classes - 1);
+							getchar();
 							continue; // if label contains class_id more than number of classes in the cfg-file
 						}
                         if(!truth.x) break;

--
Gitblit v1.10.0