diff --git a/openbr/plugins/gallery.cpp b/openbr/plugins/gallery.cpp index a57aae2..d739d74 100644 --- a/openbr/plugins/gallery.cpp +++ b/openbr/plugins/gallery.cpp @@ -687,7 +687,9 @@ class dbGallery : public Gallery if (!subset.isEmpty()) { const QStringList &words = subset.split(":"); QtUtils::checkArgsSize("Input", words, 2, 4); - seed = QtUtils::toInt(words[0]); + if (words[0] == "train") seed = 0; + else if (words[0] == "test" ) seed = 1; + else seed = QtUtils::toInt(words[0]); if (words[1].startsWith('{') && words[1].endsWith('}')) { foreach (const QString ®exp, words[1].mid(1, words[1].size()-2).split(",")) metadataFields.append(QRegExp(regexp)); @@ -813,16 +815,10 @@ class googleGallery : public Gallery return templates; } - void write(const Template &t) + void write(const Template &) { - (void) t; qFatal("Not supported."); } - - void init() - { - // - } }; BR_REGISTER(Gallery, googleGallery)