Skip to content

Commit 971cc33

Browse files
committed
dnn(test): adjust tests for OpenVINO 2020.4 (4.x branch)
1 parent 9b7b22e commit 971cc33

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

modules/dnn/test/test_model.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ TEST_P(Test_Model, DetectRegion)
131131
{
132132
applyTestTag(CV_TEST_TAG_LONG, CV_TEST_TAG_MEMORY_1GB);
133133

134+
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2020040000) // nGraph compilation failure
135+
if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH && target == DNN_TARGET_OPENCL)
136+
applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_OPENCL, CV_TEST_TAG_DNN_SKIP_IE_VERSION);
137+
if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH && target == DNN_TARGET_OPENCL_FP16)
138+
applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16, CV_TEST_TAG_DNN_SKIP_IE_VERSION);
139+
#endif
140+
134141
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_GE(2019010000)
135142
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16)
136143
applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16);
@@ -350,6 +357,12 @@ TEST_P(Test_Model, Detection_normalized)
350357
scoreDiff = 5e-3;
351358
iouDiff = 0.09;
352359
}
360+
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2020040000)
361+
if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH && target == DNN_TARGET_MYRIAD)
362+
{
363+
iouDiff = 0.095f;
364+
}
365+
#endif
353366
testDetectModel(weights_file, config_file, img_path, refClassIds, refConfidences, refBoxes,
354367
scoreDiff, iouDiff, confThreshold, nmsThreshold, size, mean, scale);
355368
}

0 commit comments

Comments
 (0)