Merge pull request #24899 from asmorkalov:as/style_transfer_ocl

Relax test requirements for OpenCL in test DNNTestNetwork.FastNeuraStyle_eccv16
pull/24912/head
Alexander Smorkalov 11 months ago committed by GitHub
commit f1e1145546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      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)

Loading…
Cancel
Save