Disabled FCN test on win32, changed googlenet test

pull/1170/head
Aleksandr Rybnikov 8 years ago
parent ddc58e76ad
commit 08ade5e10e
  1. 2
      modules/dnn/test/test_caffe_importer.cpp
  2. 6
      modules/dnn/test/test_googlenet.cpp

@ -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)
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()
} }
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");

Loading…
Cancel
Save