From a932d9acb20d79817385540416d098436ac0b47b Mon Sep 17 00:00:00 2001 From: WN90 <18010090131@126.com> Date: Tue, 14 Sep 2021 20:56:38 +0800 Subject: [PATCH] rename the database names in or_mnist.cpp to match that from mnist offical website --- modules/datasets/src/or_mnist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/datasets/src/or_mnist.cpp b/modules/datasets/src/or_mnist.cpp index 25c3ab38d22..f1e98d47f22 100644 --- a/modules/datasets/src/or_mnist.cpp +++ b/modules/datasets/src/or_mnist.cpp @@ -127,12 +127,12 @@ void OR_mnistImp::loadDataset(const string &path) test.push_back(vector< Ptr >()); validation.push_back(vector< Ptr >()); - string trainImagesFile(path + "train-images.idx3-ubyte"); - string trainLabelsFile(path + "train-labels.idx1-ubyte"); + string trainImagesFile(path + "train-images-idx3-ubyte"); + string trainLabelsFile(path + "train-labels-idx1-ubyte"); loadDatasetPart(trainImagesFile, trainLabelsFile, 60000, train.back()); - string testImagesFile(path + "t10k-images.idx3-ubyte"); - string testLabelsFile(path + "t10k-labels.idx1-ubyte"); + string testImagesFile(path + "t10k-images-idx3-ubyte"); + string testLabelsFile(path + "t10k-labels-idx1-ubyte"); loadDatasetPart(testImagesFile, testLabelsFile, 10000, test.back()); }