From e73c0750c57fe2df03ff7c839bde9a2771e39da5 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Mon, 30 Sep 2013 15:45:04 -0400 Subject: [PATCH] Added comment about allPartitions flag --- openbr/plugins/validate.cpp | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/validate.cpp b/openbr/plugins/validate.cpp index ac1487c..c77dff3 100644 --- a/openbr/plugins/validate.cpp +++ b/openbr/plugins/validate.cpp @@ -100,6 +100,10 @@ class CrossValidateTransform : public MetaTransform void project(const Template &src, Template &dst) const { + // Remember, the partition should never be -1 + // since it is assumed that the allPartitions + // flag is only used during comparison + // (i.e. only used when making a mask) if (src.file.getBool("Train", false)) dst = src; else { // If we want to duplicate templates but use the same training data -- libgit2 0.21.4