From eb260b02c26ab0b1acd8a5277a0fae967bdb8c91 Mon Sep 17 00:00:00 2001 From: Austin Van Blanton Date: Fri, 9 Aug 2013 13:42:55 -0400 Subject: [PATCH] Add warning if training an untrainable Stream (until mysterious issue resolved) --- openbr/plugins/stream.cpp | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/stream.cpp b/openbr/plugins/stream.cpp index 553393f..3754609 100644 --- a/openbr/plugins/stream.cpp +++ b/openbr/plugins/stream.cpp @@ -1024,6 +1024,10 @@ public: void train(const TemplateList & data) { + if (!trainable) { + qWarning("How did this happen? You're training a nontrainable transform."); + return; + } qFatal("Stream train is currently not implemented."); foreach(Transform * transform, transforms) { transform->train(data); -- libgit2 0.21.4