diff --git a/openbr/plugins/stream.cpp b/openbr/plugins/stream.cpp index 6d106e3..b0e4ec8 100644 --- a/openbr/plugins/stream.cpp +++ b/openbr/plugins/stream.cpp @@ -1285,11 +1285,18 @@ public: qWarning("Attempted to train untrainable transform, nothing will happen."); return; } + QList separated; + foreach (const TemplateList & list, data) { + foreach(const Template & t, list) { + separated.append(TemplateList()); + separated.last().append(t); + } + } for (int i=0; i < transforms.size(); i++) { // OK we have a trainable transform, we need to get input data for it. if (transforms[i]->trainable) { - QList copy = data; + QList copy = separated; // Project from the start to the trainable stage. subProject(copy,i);