mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 03:33:28 +08:00
Relax test requirements for OpenCL in test DNNTestNetwork.FastNeuralStyle_eccv16.
This commit is contained in:
parent
c739117a7c
commit
775210e701
@ -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…
Reference in New Issue
Block a user