Skip to content

Commit 6b3d71b

Browse files
committed
Merge pull request #1170 from arrybn:enable_large_models_tests
2 parents 27bf9e2 + 08ade5e commit 6b3d71b

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

modules/dnn/test/test_caffe_importer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ TEST(Reproducibility_AlexNet, Accuracy)
101101
normAssert(ref, out);
102102
}
103103

104+
#if !defined(_WIN32) || defined(_WIN64)
104105
TEST(Reproducibility_FCN, Accuracy)
105106
{
106107
Net net;
@@ -126,5 +127,6 @@ TEST(Reproducibility_FCN, Accuracy)
126127
Mat ref = blobFromNPY(_tf("caffe_fcn8s_prob.npy"));
127128
normAssert(ref, out);
128129
}
130+
#endif
129131

130132
}

modules/dnn/test/test_googlenet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ static void launchGoogleNetTest()
6868
}
6969

7070
std::vector<Mat> inpMats;
71-
inpMats.push_back( imread(_tf("googlenet_0.jpg")) );
72-
inpMats.push_back( imread(_tf("googlenet_1.jpg")) );
71+
inpMats.push_back( imread(_tf("googlenet_0.png")) );
72+
inpMats.push_back( imread(_tf("googlenet_1.png")) );
7373
ASSERT_TRUE(!inpMats[0].empty() && !inpMats[1].empty());
7474

75-
net.setBlob(".data", blobFromImages(inpMats, 1., false));
75+
net.setBlob(".data", blobFromImages(inpMats));
7676
net.forward();
7777

7878
Mat out = net.getBlob("prob");

modules/dnn/test/test_main.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#include "test_precomp.hpp"
22

3-
CV_TEST_MAIN("")
3+
static const char* extraTestDataPath =
4+
#ifdef WINRT
5+
NULL;
6+
#else
7+
getenv("OPENCV_DNN_TEST_DATA_PATH");
8+
#endif
9+
10+
CV_TEST_MAIN("",
11+
extraTestDataPath ? (void)cvtest::addDataSearchPath(extraTestDataPath) : (void)0
12+
)
413

514
namespace cvtest
615
{

0 commit comments

Comments
 (0)