|
|
|
@ -242,6 +242,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV) |
|
|
|
|
throw SkipTestException("OpenCV backend is not supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("deconv3d"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -260,6 +263,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D_bias) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV) |
|
|
|
|
throw SkipTestException("OpenCV backend is not supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("deconv3d_bias"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -278,6 +284,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D_pad) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV) |
|
|
|
|
throw SkipTestException("OpenCV backend is not supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("deconv3d_pad"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -296,6 +305,9 @@ TEST_P(Test_ONNX_layers, Deconvolution3D_adjpad) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV) |
|
|
|
|
throw SkipTestException("OpenCV backend is not supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("deconv3d_adjpad"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -384,6 +396,9 @@ TEST_P(Test_ONNX_layers, ReduceMean3D) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV && target != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("Only CPU is supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("reduce_mean3d"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -671,6 +686,9 @@ TEST_P(Test_ONNX_layers, MaxPooling3D) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV && target != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("Only CPU is supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("max_pool3d", npy, 0, 0, false, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -685,6 +703,9 @@ TEST_P(Test_ONNX_layers, AvePooling3D) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV && target != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("Only CPU is supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("ave_pool3d"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -699,6 +720,9 @@ TEST_P(Test_ONNX_layers, PoolConv3D) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV && target != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("Only CPU is supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
testONNXModels("pool_conv_3d"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1777,6 +1801,9 @@ TEST_P(Test_ONNX_nets, Resnet34_kinetics) |
|
|
|
|
if (backend == DNN_BACKEND_OPENCV && target != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("Only CPU is supported"); // FIXIT use tags
|
|
|
|
|
|
|
|
|
|
if (backend == DNN_BACKEND_VKCOM) |
|
|
|
|
applyTestTag(CV_TEST_TAG_DNN_SKIP_VULKAN); |
|
|
|
|
|
|
|
|
|
String onnxmodel = findDataFile("dnn/resnet-34_kinetics.onnx", false); |
|
|
|
|
Mat image0 = imread(findDataFile("dnn/dog416.png")); |
|
|
|
|
Mat image1 = imread(findDataFile("dnn/street.png")); |
|
|
|
|