From 775210e70160fcf9ac8a67bcb6e8f3aff18f907c Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 22 Jan 2024 11:58:55 +0300 Subject: [PATCH] Relax test requirements for OpenCL in test DNNTestNetwork.FastNeuralStyle_eccv16. --- modules/dnn/test/test_backends.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/dnn/test/test_backends.cpp b/modules/dnn/test/test_backends.cpp index c57faac1a9..fda2ec5b0e 100644 --- a/modules/dnn/test/test_backends.cpp +++ b/modules/dnn/test/test_backends.cpp @@ -456,7 +456,7 @@ TEST_P(DNNTestNetwork, FastNeuralStyle_eccv16) Mat inp = blobFromImage(img, 1.0, Size(224, 224), Scalar(0.0, 0.0, 0.0), true, false); // Output image has values in range [0.0, 255.0]. float l1 = 5e-4, lInf = 1e-2; - if (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) + if (target == DNN_TARGET_MYRIAD) { l1 = 0.4; lInf = 7.46; @@ -481,6 +481,15 @@ TEST_P(DNNTestNetwork, FastNeuralStyle_eccv16) l1 = 0.4; lInf = 7.46; } + else if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL) + { + l1 = 5.5e-4; + } + else if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL_FP16) + { + l1 = 0.86; + lInf = 16; + } #if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2022010000) if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH && target == DNN_TARGET_OPENCL)