Commit eb260b02c26ab0b1acd8a5277a0fae967bdb8c91

Authored by Austin Van Blanton
1 parent 91a54f48

Add warning if training an untrainable Stream (until mysterious issue resolved)

Showing 1 changed file with 4 additions and 0 deletions
openbr/plugins/stream.cpp
... ... @@ -1024,6 +1024,10 @@ public:
1024 1024  
1025 1025 void train(const TemplateList & data)
1026 1026 {
  1027 + if (!trainable) {
  1028 + qWarning("How did this happen? You're training a nontrainable transform.");
  1029 + return;
  1030 + }
1027 1031 qFatal("Stream train is currently not implemented.");
1028 1032 foreach(Transform * transform, transforms) {
1029 1033 transform->train(data);
... ...