|
|
|
@ -164,6 +164,8 @@ TEST_P(Test_ONNX_layers, MultyInputs) |
|
|
|
|
|
|
|
|
|
TEST_P(Test_ONNX_layers, DynamicReshape) |
|
|
|
|
{ |
|
|
|
|
if (backend == DNN_BACKEND_INFERENCE_ENGINE && (target == DNN_TARGET_OPENCL || target == DNN_TARGET_OPENCL_FP16)) |
|
|
|
|
throw SkipTestException(""); |
|
|
|
|
testONNXModels("dynamic_reshape"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -249,6 +251,10 @@ TEST_P(Test_ONNX_nets, VGG16) |
|
|
|
|
else if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL) { |
|
|
|
|
lInf = 1.2e-4; |
|
|
|
|
} |
|
|
|
|
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE >= 2018050000 |
|
|
|
|
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16) |
|
|
|
|
l1 = 0.131; |
|
|
|
|
#endif |
|
|
|
|
testONNXModels("vgg16", pb, l1, lInf); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -327,7 +333,7 @@ TEST_P(Test_ONNX_nets, CNN_MNIST) |
|
|
|
|
TEST_P(Test_ONNX_nets, MobileNet_v2) |
|
|
|
|
{ |
|
|
|
|
// output range: [-166; 317]
|
|
|
|
|
const double l1 = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 0.38 : 7e-5; |
|
|
|
|
const double l1 = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 0.4 : 7e-5; |
|
|
|
|
const double lInf = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 2.87 : 5e-4; |
|
|
|
|
testONNXModels("mobilenetv2", pb, l1, lInf); |
|
|
|
|
} |
|
|
|
@ -350,7 +356,17 @@ TEST_P(Test_ONNX_nets, LResNet100E_IR) |
|
|
|
|
|
|
|
|
|
TEST_P(Test_ONNX_nets, Emotion_ferplus) |
|
|
|
|
{ |
|
|
|
|
testONNXModels("emotion_ferplus", pb); |
|
|
|
|
double l1 = default_l1; |
|
|
|
|
double lInf = default_lInf; |
|
|
|
|
// Output values are in range [-2.01109, 2.11111]
|
|
|
|
|
if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL_FP16) |
|
|
|
|
l1 = 0.007; |
|
|
|
|
else if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16) |
|
|
|
|
{ |
|
|
|
|
l1 = 0.021; |
|
|
|
|
lInf = 0.034; |
|
|
|
|
} |
|
|
|
|
testONNXModels("emotion_ferplus", pb, l1, lInf); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_P(Test_ONNX_nets, Inception_v2) |
|
|
|
@ -371,6 +387,10 @@ TEST_P(Test_ONNX_nets, DenseNet121) |
|
|
|
|
|
|
|
|
|
TEST_P(Test_ONNX_nets, Inception_v1) |
|
|
|
|
{ |
|
|
|
|
#if defined(INF_ENGINE_RELEASE) && INF_ENGINE_RELEASE == 2018050000 |
|
|
|
|
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD) |
|
|
|
|
throw SkipTestException(""); |
|
|
|
|
#endif |
|
|
|
|
testONNXModels("inception_v1", pb); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|