From ba70801e982ada241ced55bedad2a411da1896c4 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Fri, 01 Jun 2018 11:58:30 +0000
Subject: [PATCH] Minor fixes
---
src/region_layer.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/region_layer.c b/src/region_layer.c
index a2ca440..4e1e03a 100644
--- a/src/region_layer.c
+++ b/src/region_layer.c
@@ -297,7 +297,8 @@
box truth = float_to_box(state.truth + t*5 + b*l.truths);
int class_id = state.truth[t * 5 + 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
}
--
Gitblit v1.10.0