Commit 9d3d5e9d authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #13774 from l-bat:fix-IE-tests

parents 3c70d966 183c0fca
...@@ -124,7 +124,6 @@ PERF_TEST_P_(DNNTestNetwork, SSD) ...@@ -124,7 +124,6 @@ PERF_TEST_P_(DNNTestNetwork, SSD)
PERF_TEST_P_(DNNTestNetwork, OpenFace) PERF_TEST_P_(DNNTestNetwork, OpenFace)
{ {
if (backend == DNN_BACKEND_HALIDE || if (backend == DNN_BACKEND_HALIDE ||
(backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16) ||
(backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD)) (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD))
throw SkipTestException(""); throw SkipTestException("");
processNet("dnn/openface_nn4.small2.v1.t7", "", "", processNet("dnn/openface_nn4.small2.v1.t7", "", "",
......
...@@ -92,7 +92,7 @@ public: ...@@ -92,7 +92,7 @@ public:
{ {
return backendId == DNN_BACKEND_OPENCV || return backendId == DNN_BACKEND_OPENCV ||
backendId == DNN_BACKEND_HALIDE || backendId == DNN_BACKEND_HALIDE ||
(backendId == DNN_BACKEND_INFERENCE_ENGINE && (preferableTarget != DNN_TARGET_MYRIAD || type == CHANNEL_NRM)); backendId == DNN_BACKEND_INFERENCE_ENGINE;
} }
#ifdef HAVE_OPENCL #ifdef HAVE_OPENCL
......
...@@ -67,13 +67,9 @@ public: ...@@ -67,13 +67,9 @@ public:
{ {
if (pnorm != 2) if (pnorm != 2)
return false; return false;
if (!blobs.empty())
return true; return preferableTarget == DNN_TARGET_MYRIAD ? !acrossSpatial : startAxis == 1;
if (preferableTarget == DNN_TARGET_MYRIAD)
return !acrossSpatial;
return startAxis == 1 && (!acrossSpatial || endAxis > 1);
} }
else
return backendId == DNN_BACKEND_OPENCV; return backendId == DNN_BACKEND_OPENCV;
} }
......
...@@ -54,10 +54,9 @@ public: ...@@ -54,10 +54,9 @@ public:
#ifdef HAVE_INF_ENGINE #ifdef HAVE_INF_ENGINE
if (backendId == DNN_BACKEND_INFERENCE_ENGINE) if (backendId == DNN_BACKEND_INFERENCE_ENGINE)
{ {
return (interpolation == "nearest" && preferableTarget != DNN_TARGET_MYRIAD) || return (interpolation == "nearest" && scaleWidth == scaleHeight) ||
(interpolation == "bilinear" && INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2018R4)); (interpolation == "bilinear" && INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2018R4));
} }
else
#endif #endif
return backendId == DNN_BACKEND_OPENCV; return backendId == DNN_BACKEND_OPENCV;
} }
......
...@@ -558,8 +558,6 @@ TEST_P(Test_TensorFlow_layers, split) ...@@ -558,8 +558,6 @@ TEST_P(Test_TensorFlow_layers, split)
TEST_P(Test_TensorFlow_layers, resize_nearest_neighbor) TEST_P(Test_TensorFlow_layers, resize_nearest_neighbor)
{ {
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target != DNN_TARGET_MYRIAD)
throw SkipTestException("");
runTensorFlowNet("resize_nearest_neighbor"); runTensorFlowNet("resize_nearest_neighbor");
runTensorFlowNet("keras_upsampling2d"); runTensorFlowNet("keras_upsampling2d");
} }
......
...@@ -277,8 +277,6 @@ TEST_P(Test_Torch_nets, OpenFace_accuracy) ...@@ -277,8 +277,6 @@ TEST_P(Test_Torch_nets, OpenFace_accuracy)
throw SkipTestException(""); throw SkipTestException("");
#endif #endif
checkBackend(); checkBackend();
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16)
throw SkipTestException("");
const string model = findDataFile("dnn/openface_nn4.small2.v1.t7", false); const string model = findDataFile("dnn/openface_nn4.small2.v1.t7", false);
Net net = readNetFromTorch(model); Net net = readNetFromTorch(model);
......
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