Remove asymmetric padding in Conv layer since it is supported in CPU backend#22362
Remove asymmetric padding in Conv layer since it is supported in CPU backend#22362asmorkalov merged 3 commits intoopencv:4.xfrom
Conversation
|
I tried the branch with TEngine enabled on my Jetson TK1 (armv7 with neon, Ubuntu 14.04) and minimal dnn test suite has a failure: I'll check, if it relates somehow to the patch and let you know. |
|
The same issue in 4.x with TEngine: |
|
The issue is TEngine specific and is not reproducible without it: |
|
@asmorkalov Thank you for the test! I will take a look at the problem. But let me clarify, do you mean Tengine (Build with WITH_TENGINE) by TEngine? Lines 453 to 455 in 3651831 |
|
Yes, I mean WITH_TENGINE option: |
|
@asmorkalov Convolution with asymmetric padding in Tengine is now supported. However, I did not find the root problem in Hello @liqi-c , we find the tengine convolution failed at |
|
Previous work and tests for asymmetric padding support: #20964 |
|
Tested with the last 2 releases of OpenVINO. No new regressions in comparison to 4.x. |
In #21910, fast convolution is introduced with support for asymmetric padding in calculation. So there is no need to keep a separate padding layer for asymmetric padding in convolution layer.
Regression test for convolution layer with asymmetric padding:
opencv/modules/dnn/test/test_onnx_importer.cpp
Lines 118 to 122 in d09cc0f
OpenVINO, Default CPU (CPU, OCL, Tengine), Vulkan, CUDA, WebNN are registered for this test.
Checks on different backends
VulkanI am getting segmentation fault regardless my changesTest_ONNX_layers.Convolution_variable_weight_bias/0but should not be related to this patch)Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.