|
|
|
@ -210,7 +210,11 @@ TEST_P(Test_ONNX_nets, RCNN_ILSVRC13) |
|
|
|
|
testONNXModels("rcnn_ilsvrc13", pb); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifdef OPENCV_32BIT_CONFIGURATION |
|
|
|
|
TEST_P(Test_ONNX_nets, DISABLED_VGG16) // memory usage >2Gb
|
|
|
|
|
#else |
|
|
|
|
TEST_P(Test_ONNX_nets, VGG16) |
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
double l1 = default_l1; |
|
|
|
|
double lInf = default_lInf; |
|
|
|
@ -225,7 +229,11 @@ TEST_P(Test_ONNX_nets, VGG16) |
|
|
|
|
testONNXModels("vgg16", pb, l1, lInf); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#ifdef OPENCV_32BIT_CONFIGURATION |
|
|
|
|
TEST_P(Test_ONNX_nets, DISABLED_VGG16_bn) // memory usage >2Gb
|
|
|
|
|
#else |
|
|
|
|
TEST_P(Test_ONNX_nets, VGG16_bn) |
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
double l1 = default_l1; |
|
|
|
|
double lInf = default_lInf; |
|
|
|
@ -288,7 +296,7 @@ TEST_P(Test_ONNX_nets, CNN_MNIST) |
|
|
|
|
{ |
|
|
|
|
// output range: [-1952; 6574]
|
|
|
|
|
const double l1 = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 3.82 : 4.3e-4; |
|
|
|
|
const double lInf = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 13.5 : 1e-3; |
|
|
|
|
const double lInf = (target == DNN_TARGET_OPENCL_FP16 || target == DNN_TARGET_MYRIAD) ? 13.5 : 2e-3; |
|
|
|
|
|
|
|
|
|
testONNXModels("cnn_mnist", pb, l1, lInf); |
|
|
|
|
} |
|
|
|
|