From 778e6e58888654c36c59672a76ae4c8e6bb8d60d Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 16 Feb 2015 16:45:03 -0500 Subject: [PATCH] Sanity check --- openbr/plugins/dlib.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openbr/plugins/dlib.cpp b/openbr/plugins/dlib.cpp index c4b82d7..564cb24 100644 --- a/openbr/plugins/dlib.cpp +++ b/openbr/plugins/dlib.cpp @@ -3,10 +3,8 @@ #include "openbr/core/eigenutils.h" #include -#include #include #include -#include #include #include @@ -105,6 +103,9 @@ private: } } + if (samples.size() == 0) + qFatal("Training data has no bounding boxes."); + add_image_left_right_flips(samples, boxes); image_scanner_type scanner; -- libgit2 0.21.4