diff --git a/openbr/core/eval.cpp b/openbr/core/eval.cpp index 2e69e65..2e971b0 100755 --- a/openbr/core/eval.cpp +++ b/openbr/core/eval.cpp @@ -747,12 +747,11 @@ static QMap getDetections(const File &predictedGallery, con static int getNumberOfImages(const File &truthGallery) { - const FileList files = TemplateList::fromGallery(truthGallery).files(); + const FileList files = FileList::fromGallery(truthGallery); - QStringList names; - foreach(const File file, files) - if (!names.contains(file.fileName())) - names.append(file.fileName()); + QSet names; + foreach(const File &file, files) + names.insert(file.fileName()); return names.size(); }