Commit 08ade5e1 authored by Aleksandr Rybnikov's avatar Aleksandr Rybnikov

Disabled FCN test on win32, changed googlenet test

parent ddc58e76
...@@ -101,6 +101,7 @@ TEST(Reproducibility_AlexNet, Accuracy) ...@@ -101,6 +101,7 @@ TEST(Reproducibility_AlexNet, Accuracy)
normAssert(ref, out); normAssert(ref, out);
} }
#if !defined(_WIN32) || defined(_WIN64)
TEST(Reproducibility_FCN, Accuracy) TEST(Reproducibility_FCN, Accuracy)
{ {
Net net; Net net;
...@@ -126,5 +127,6 @@ TEST(Reproducibility_FCN, Accuracy) ...@@ -126,5 +127,6 @@ TEST(Reproducibility_FCN, Accuracy)
Mat ref = blobFromNPY(_tf("caffe_fcn8s_prob.npy")); Mat ref = blobFromNPY(_tf("caffe_fcn8s_prob.npy"));
normAssert(ref, out); normAssert(ref, out);
} }
#endif
} }
...@@ -68,11 +68,11 @@ static void launchGoogleNetTest() ...@@ -68,11 +68,11 @@ static void launchGoogleNetTest()
} }
std::vector<Mat> inpMats; std::vector<Mat> inpMats;
inpMats.push_back( imread(_tf("googlenet_0.jpg")) ); inpMats.push_back( imread(_tf("googlenet_0.png")) );
inpMats.push_back( imread(_tf("googlenet_1.jpg")) ); inpMats.push_back( imread(_tf("googlenet_1.png")) );
ASSERT_TRUE(!inpMats[0].empty() && !inpMats[1].empty()); ASSERT_TRUE(!inpMats[0].empty() && !inpMats[1].empty());
net.setBlob(".data", blobFromImages(inpMats, 1., false)); net.setBlob(".data", blobFromImages(inpMats));
net.forward(); net.forward();
Mat out = net.getBlob("prob"); Mat out = net.getBlob("prob");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment